in reply to Working Directory
use File::Copy qw( move ); move( $file_in_old_location, $new_location );
If you need to change the working directory, you'd just use the chdir built-in command. You can save the current directory if you need to like so:
use Cwd; my $pwd = cwd(); chdir( $somewhere_else ); # ... now you can do something over there chdir( $pwd ); # restores original location.
If that's not what you needed to know, try asking again.
|
|---|