Perl Monk, Perl Meditation | |
PerlMonks |
Re^3: Perl one-liner to remove duplicate entries from PATHby demerphq (Chancellor) |
on Jan 12, 2006 at 18:57 UTC ( [id://522780]=note: print w/replies, xml ) | Need Help?? |
there are other more efficient ways to do that btw, im just feeling moderately cheeky. ;-) And for the curious you cant write that as ||= because of a bug in Perl (on some versions of Perl anyway). Update: Or maybe its not a bug. According to some the docs should be read to say that it should be valid to say
and some are saying that the results are undefined. sigh
--- $world=~s/war/peace/g
In Section
Seekers of Perl Wisdom
|
|