![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re: Replaying Santa Claus Golf Apocalypse with Pugs/Perl6by rg0now (Chaplain) |
on Mar 12, 2005 at 17:55 UTC ( #438961=note: print w/replies, xml ) | Need Help?? |
And here is my masterpiece for today, wc.p6:
Just a quick explanation about +*(=open@ARGS[0]): the * operator forces the = $filehandle operator into list context, which is then forced into scalar context to count the number of lines in the file. Similar idea is used right after say, to force the ourput of split[] into list context without the use of join. Update: And of course, head.p6 along similar lines:
rg0now
In Section
Meditations
|
|