![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: How's your Perl?by ambrus (Abbot) |
on Nov 02, 2003 at 16:47 UTC ( #303927=note: print w/replies, xml ) | Need Help?? |
I could solve 5 of them. 1. *x=*_;&{sub{$x[0]="kacsa\n";print$x[1]}}($a,$a); 2. {foo;redo} 3.
4.
6. $u="kacsa";$x=\$u;$y="$x";$\=$,=$/;print $x,$y,$$x,$$y,$x eq $y,$$x eq $$y; 7. I can't even make !*$foo true. 8.
UPDATE: read some solutions. So you accept mine for 3 and 4. Quiestion 10 is really trickey. UPDATE: please someone explain why my solution to 8 works. I don't understand. Thx. UPDATE: I still don't know how my solution to 8 works, I've found it accidentally, but I see that there's a similar solution using $^N. (And one even with $1, wow!) (The official solution which uses $| is eaasier to understand.)
In Section
Meditations
|
|