go ahead... be a heretic | |
PerlMonks |
Re: Bizarreness in ?PATTERN? and gby beth (Scribe) |
on Jun 04, 2004 at 05:11 UTC ( [id://360707]=note: print w/replies, xml ) | Need Help?? |
Buu's code doesn't seem so bizarre - as many people have commented, it kinda makes sense.
But compare this: with this: I would expect these to be equivalent ... but no, the first example prints "1" and the second prints "1 2". The plot thickens! update 2004-06-04 01:41 - added conditionals so the first snippet prints "1" rather than "1 1". -- eval pack("H*", "7072696e74207061636b2822482a222c202236613631373036382229"); # japh or forkbomb? You decide!
In Section
Seekers of Perl Wisdom
|
|