vinoth.ree has asked for the wisdom of the Perl Monks concerning the following question:
print_argu "Hello function!\n"; sub print_argu{ print "@_\n"; }
Above code is not working for me, Then I put parentheses its working fine.But
sub print_argu{ print "@_\n";} print_argu "Hello function!\n";
In the second code I called this function after the definition of the function, without parentheses, Is it the problem with calling the function?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: function calling
by Bloodnok (Vicar) on Apr 04, 2009 at 10:24 UTC | |
|
Re: function calling
by nagalenoj (Friar) on Apr 04, 2009 at 11:24 UTC | |
|
Re: function calling
by Anonymous Monk on Apr 04, 2009 at 08:59 UTC |