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.
In reply to Re: Re: Command line to array
by hdp
in thread Command line to array
by elusion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |