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