#perl - Thu 8 Mar 2007 between 06:57 and 07:03



eMishdeparse: grep { last } @array;
buubotgrep({last;} @array);
f00li5heMish: no, you can't
eMish: grep is not a loop
rhizoeMish: what sort of silly question is that ? test it and see !
eMishrhizo, but then f00li5h will be bored
can't i make him some busy ?
eval: while(1) { grep { last } (); }
buubotKilling 1172 due to run time
f00li5heMish: ick
eMishhmmmm
rhizo{Primacy of Number}++ # Philip Glass rules
eMishit did
eval: while(1) { grep { last } (); print "xxx"; }; print "yyy";
buubotKilling 1173 due to run time
eMishi don't understand this
but i can use goto
eval: grep { goto END_GREP } (); END_GREP:
buuboteMish:
rhizoeMish, you can query buubot if you must use its eval functionality, though i strongly suggest you check out perldoc perlrun and adopt perl one-liners for testing
f00li5heMish: you're greing the empty list
eMishI don't understand what 'last' jumped to in the while...grep {last} example
rhizo, ok
f00li5heMish: you were greping an empty list
your test sucked
eMishah, i see what you mean
f00li5heval: while( $_ = qw/foo bar baz/ ) { last if /bar/; print }
eMishok, i can make it with goto
buubotKilling 1175 due to run time
eMishor last LABEL
f00li5heval: @list = qw/foo bar baz/($_ = shift @list ) { last if /bar/; print }
eMishLABEL: { grep { last LABEL } () }
buubotf00li5h: Error: syntax error at eval line 1, near "qw/foo bar baz/(" syntax error at eval line 1, near "print }"
f00li5heval: @list = qw/foo bar baz/;($_ = shift @list ) { last if /bar/; print }
buubotf00li5h: Error: syntax error at eval line 1, near ") {" syntax error at eval line 1, near "print }"
f00li5hFUCKIT
actionf00li5h takes his ball and goes home
f00li5htakes his ball and goes home
eMishf00li5h, you are loser
but you helped me a lot
f00li5heMish: shut up "MR doesn't understand last"

Page: 3 10 17 24 31 38 45 52 59 66 73 80 87 

IrcArchive