On Tue, Mar 24, 2009 at 19:50, Rajini Naidu <rajinid...@gmail.com> wrote: snip >> open my $IN, '<', "$data_dir/$node.load" or die "Cannot open >> '$data_dir/$node.load' $!"; >> open my $OUT, '>', "/tmp/$day[0].$day[1].$day[2].$node.log" or die "Cannot >> open '/tmp/$day[0].$day[1].$day[2].$node.log' $!"; >> >> while ( <$IN> ) { >> next unless /$res/; >> print $OUT $_; >> } snip
snip > I included the code as you suggested, but does'nt seem to work. > The output file is empty. snip What does $res contain? Can you send your code and examples of the data to the list? -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/