sasidhardv has asked for the wisdom of the Perl Monks concerning the following question:
foreach $key (sort {$a <=> $b} $query->param()) { # rearrange: next if ($query->param($key) =~ /^\s*$/); next if ($key !~ /^filetoupload_(\d+)$/); # next condition is a subset of the previous condition # i.e., $key cannot be empty AND match filetoupload_\d+ #next if ($key =~ /^\s*$/); $Number = $1; # only one matching group: ( ) if ($query->param($key) =~ /([^\/\\]+)$/) { $Filename = $1; $Filename =~ s/^\.+//; # hence, no $2 #$pxuser = $2; #$pxuser =~ s/^\.+//; $files{$Number} = $Filename; $File_Handle = $query->param($key); if (!$ALLOW_INDEX && $Filename =~ /^index/i) { print header;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: y username is empty
by moritz (Cardinal) on Oct 30, 2011 at 15:44 UTC | |
| |
|
Re: y username is empty
by aaron_baugher (Curate) on Oct 31, 2011 at 01:18 UTC | |
by sasidhardv (Initiate) on Oct 31, 2011 at 06:49 UTC | |
by aaron_baugher (Curate) on Oct 31, 2011 at 12:26 UTC |