Re: Friday afternoon help!

2002-02-08 Thread Jonathan E. Paton
--- Scott Lutz <[EMAIL PROTECTED]> wrote: > > Why is it that you have to "\" out the @ symbol in the > regex below? Because scalars, arrays and suchlike are stuffed into the regex before it is compiled. Rather like a regex version of double quotes (and why quotemeta() exists). Use single quote

Friday afternoon help!

2002-02-08 Thread Scott Lutz
Why is it that you have to "\" out the @ symbol in the regex below? #!/usr/bin/perl -w use strict; opendir(TEMP_DIR, "/home/slutz/temp"); my @items = grep(/\.BAD/,readdir(TEMP_DIR)); closedir(TEMP_DIR); my ($file, $line); foreach $file (@items) { print "Going into file : $file\