How to get split $var to work like split ' '?by QM (Parson)
|on Sep 10, 2013 at 15:35 UTC||Need Help??|
QM has asked for the
wisdom of the Perl Monks concerning the following question:
I have a script that optionally allows the split pattern to be specified on the command line. The default pattern is:
However, this doesn't DWIM with the default:
Is there a nifty-keen way of getting the default ' ' behavior from a $variable pattern? Or am I stuck with something like this:
I'm on 5.10.1.