in reply to Re: Re: Move or rename script
in thread Move or rename script
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`;
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