in reply to Re: Command line to array
in thread Command line to array
Presumably you'll have more functions defined than that; consider using Term::Readline or similar if this is something that'll be used a lot.% perl -MData::Dumper -nwe 'chomp; ($sub, $rest) = split / +/, $_, 2; eval "$sub($rest)"; print $@ if $@; print "\n) " } BEGIN { sub spew { print Dumper(@_) } print ") "'
hdp.
|
|---|