|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Are "$hash{$_} ||= 1 + keys %hash" and variants well defined or not?by demerphq (Chancellor) |
| on Jan 12, 2006 at 20:59 UTC ( #522808=perlmeditation: print w/ replies, xml ) | Need Help?? |
|
Should the following two lines of code do the same thing?
IMO the second one should be well defined. tye and diotalevi think that both are undefined, I could be conviced about the first, but I need more convincing on the second. This came up because I was being cheeky in Re^3: Perl one-liner to remove duplicate entries from PATH and wound up scratching my head.
--- $world=~s/war/peace/g
Back to
Meditations
|
|
||||||||||||||||||||||||||||||