P is for Practical | |
PerlMonks |
Re: Re: Re: Move or rename scriptby IOrdy (Friar) |
on May 24, 2002 at 15:58 UTC ( [id://169125]=note: print w/replies, xml ) | Need Help?? |
use backticks `` to make your system calls. (sorry I cant find a good link) any arguments can just be passed into the backtick. i.e. a recursive list of files that could be split with "\n" into an array.<br / @foo = `find $path -name $ftype`; And for move: $where = '/home/iordy/public_html/'; $what = '/home/iordy/whatever.pl'; @foo = `mv $args $what $where`;
In Section
Seekers of Perl Wisdom
|
|