You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
194 B
Perl
12 lines
194 B
Perl
5 years ago
|
#!/usr/bin/perl
|
||
|
|
||
|
use strict;
|
||
|
use warnings;
|
||
|
|
||
|
sub add_two ($$) {
|
||
|
return $_[0]+$_[1];
|
||
|
}
|
||
|
|
||
|
print prototype(\&add_two),"\n"; # produces '$$'
|
||
|
print prototype('add_two'),"\n"; # likewise
|