As someone else mentioned, you should not be matching the backslash in the regex. Other platforms (or possibly some browsers on Windows) use other directory separators. Also, that regular expression allows some unsafe characters in the matched string.
# $file set to "C:\\images\\apple.gif" # $file set to 'C:\images\apple.gif';
In reply to Re: use CGI vs use CGI qw(:standard)
by iburrell
in thread use CGI vs use CGI qw(:standard)
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |