| ||||||
| 5/17 |
| 2004/6/24-26 [Computer/SW/Languages/Perl] UID:31002 Activity:moderate |
6/24 I defined a function in Perl
sub myPrint {
&print;
}
And perl complains that it main::print is undefined. How do I
refer to the builtin print?
\_ print;
\_ But according to the camel book, &print; should pass the current
@_ to print while print; does not (I have tried).
\_ I don't believe that works for builtins
\_ Right, and it's deprecated even for functions. Just
say what you mean: print @_;
\_ Isn't the whole spirot of PERL that there is > 1 way
to code what you want? |