Shlomi Fish wrote: > Of course, setting it to anything but the default is a sure fire way to break > practically most production code out there , and "Perl Best Practices" > recommends against setting it. But it may be useful in one-liners / small > scripts / golfs / obfuscations / etc.
If you're going to use it, localize it in a block: { local $, = ', '; print $a, $comma, $separated, $list, "\n"; } Do the same thing with the $LIST_SEPARATOR { local $" = ', '; print "@some_array\n"; } -- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. I like Perl; it's the only language where you can bless your thingy. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/