Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Shell script with PERL

by tobyink (Abbot)
on Nov 21, 2012 at 14:45 UTC ( #1004934=note: print w/replies, xml ) Need Help??


in reply to Shell script with PERL

That's quite a vague question. Perhaps you're looking for the system function.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'