Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    print $cgi->pre( Dumper( $cgi ) );
    
  2. or download this
    $file=~m/^.*(\\|\/)(.*)/; # strip the remote path and keep the filenam
    +e 
    $name = $2; 
    
    open(LOCAL, ">$dir/$name") or die $!; #open file
    
  3. or download this
    ( $name ) = ( $file =~ /(\w+(?:\.\w+)?)$/ ); # Note the $ which anchor
    +s to the end of string
    
  4. or download this
    ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time
    +);
    
  5. or download this
    my ( $sec, $min ) = (localtime( time ) )[0,1];