- or download this
unless(/^([\w.-]) \s+ ([\w.-])$/x) {
- or download this
unless(/^([\w.-]+) \s+ ([\w.-]+)$/x) {
- or download this
<code>
unless(/^([\w.-]) \s+ ([\w.-])$/x) {
</code > (without this extra space)
- or download this
unless(/^([\w.-]+) \s+ ([\w.-]+)$/x) {
print STDERR "$_ is not a valid line";
...
next;
}
rename $old, $new;
- or download this
system("mv $new /var/save/$subfolder_name");
- or download this
#!/usr/bin/perl -wT
- or download this
#!/usr/bin/perl -wT
use strict;
...
unless(move("$new", "/var/save/$subfolder_name")) {
print STDERR "Oops! Couldn't move the file: $!";
}
- or download this
Create backup directory
...
end for
send message saying everything worked.