drock has asked for the wisdom of the Perl Monks concerning the following question:
perldoc -f print
ok in perldoc print it states:
If FILEHANDLE is a variable and the next token is a term, it may me
intrepreted as an operator unless you interpose a "+" .
so in the code :
FOO is my filehandle and it is considered a variable meaning $_ right? so the next token a term, would be what? print split or 2 ??? a term meaning a unary term? and what exactly does interpose mean? thanks derekwhile (<FOO>) { ....code ...code print +(split)[2], $, ; }
Edit by BazB: retitle from "print".
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Need clarification on the print function
by trammell (Priest) on Mar 17, 2005 at 23:09 UTC | |
Re: Need clarification on the print function
by gam3 (Curate) on Mar 18, 2005 at 00:41 UTC |
Back to
Seekers of Perl Wisdom