Help for this page

Select Code to Download


  1. or download this
        my $filename= $param =~ m#^(\w[-.\w]*)\z#
          or  die "Invalid file name ($param).\n";
    
  2. or download this
        my $filepath= $param =~ m#^((?:/?[.\w][-.\w]*)+)\z#
          or  die "Invalid file path ($param).\n";
    
  3. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
        }
        return catpath( $vol, $dirs, $file );
    }