As aitap said above, quotemeta will do that, a la my $escaped = quotemeta($file); or even $cmd = "perl script.pl < \Q$file\E";
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In reply to Re^3: Using wildcards to open files.
by kennethk
in thread Using wildcards to open files.
by starface245
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |