in reply to Re^3: How to write the perl script for the following linux command?
in thread How to write the perl script for the following linux command?
error: Use of uninitialized value in pattern match (m//)my $sorce_direcrtory = $input_dir; my $new_directory = $output_dir; opendir(my $dh, $sorce_direcrtory) || die; while(readdir $dh) { if($_ =~ /.csv/){ copy("$sorce_direcrtory/$_", "$new_directory/$_"); } } closedir $dh;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to write the perl script for the following linux command?
by Corion (Patriarch) on Mar 14, 2017 at 12:38 UTC | |
by finddata (Sexton) on Mar 14, 2017 at 12:42 UTC | |
by Corion (Patriarch) on Mar 14, 2017 at 12:56 UTC | |
by finddata (Sexton) on Mar 14, 2017 at 13:16 UTC | |
by marto (Cardinal) on Mar 14, 2017 at 13:26 UTC | |
|
Re^5: How to write the perl script for the following linux command?
by poj (Abbot) on Mar 14, 2017 at 12:47 UTC | |
by finddata (Sexton) on Mar 14, 2017 at 12:56 UTC |