13 lines
194 B
Perl
13 lines
194 B
Perl
#!/usr/local/bin/perl
|
|
|
|
@array = &mysub();
|
|
$scalar = &mysub();
|
|
|
|
sub mysub {
|
|
if (wantarray()) {
|
|
print ("true\n");
|
|
} else {
|
|
print ("false\n");
|
|
}
|
|
}
|