in reply to upload on different browsers
What you appear to be trying to do is take the filename and strip off any leading directory spec., leaving only the last portion. But what if there isn't any directory, and firefox is just sending the filename? Then $fn ends up as undef, which could mean that your open statement a few lines down fails badly.($fn)=($fn=~/^.+\\(.+)/);
I'd change that line to:
Not only will this still leave the variable defined if it doesn't include a directory spec., it's a bit clearer to someone reading the code that what you want to do here is strip off any path portion of the filename, leaving only the actual file.$fn =~ s{^.*[/\\]}{};
-- @/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/; map{y/X_/\n /;print}map{pop@$_}@/for@/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: upload on different browsers
by dannoura (Pilgrim) on Jul 16, 2004 at 18:55 UTC | |
by fizbin (Chaplain) on Jul 16, 2004 at 19:18 UTC | |
by dannoura (Pilgrim) on Jul 16, 2004 at 19:26 UTC | |
|
Re: upload on different browsers
by Smylers (Pilgrim) on Jul 17, 2004 at 08:50 UTC | |
|
Re: upload on different browsers
by Anonymous Monk on Jul 19, 2004 at 02:04 UTC |