BTW, you probably want to rewrite = ~m/^.*(\\|\/)(.*)/ as =~ m,^.*(:?\\|/)(.*), or even =~ m,^.*[\\/](.*) - thus incorporating observations mode elsewhere on this thread and also the fact that m/^.*(\\|\/)(.*)/ will return the path to the file as $1 and the file itself as $2.
In reply to Re: Scrubbing a local path in a file upload
by Bloodnok
in thread Scrubbing a local path in a file upload
by sier
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |