http://qs321.pair.com?node_id=169125


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`;