Help for this page

Select Code to Download


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