Ahhh.

So this is more appropriate:

    my @list1 = grep(/$year\_$month\_.*01\.txt/,  @allFiles);
    my @list2 = grep(/$year\_$month\_.*01a\.txt/, @allFiles);


Note to self: I should be using the warnings.  Maybe I should write that on
my monitor in permanent marker so I don't forget. ;)

Thanks

David


John Joseph Trammell wrote:
>
> On Wed, Jun 06, 2001 at 02:02:33PM -0500, David Blevins wrote:
> [snip]
> >    my @list1 = grep(/$year_$month_.*01\.txt/,  @allFiles);
> >    my @list2 = grep(/$year_$month_.*01a\.txt/, @allFiles);
> [snip]
>
> These regexes look for variables $year_ and $month_.
>
> Let me guess -- you're not using warnings, right?  :-P
>
> --
> Just Another Perl Hacker.
>

Reply via email to