Help for this page

Select Code to Download


  1. or download this
    my $filename = $ARGV[0] or die "No filename given\n";
    open INPUT, "<", $filename or die "could not open $filename\n";
    while (<INPUT>) { print $_ };
    close INPUT;
    
  2. or download this
    my ($file_without_path) = $filename =~ /^.*?\/(\w*?\w*?\.ext)$/;