You're actually passing a string to open(). Perl doesn't expand regex specials like \d in a string.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
In reply to Re: Acceptable regular expressions within command line type syntax
by hardburn
in thread Acceptable regular expressions within command line type syntax
by Hagbone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |