RosettaCodeData/Task/Call-a-function/Perl/call-a-function-1.pl

5 lines
174 B
Perl
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
foo(); # Call foo on the null list
&foo(); # Ditto
foo($arg1, $arg2); # Call foo on $arg1 and $arg2
&foo($arg1, $arg2); # Ditto; ignores prototypes