in reply to Getting same output doing pattern matching

It's the following line:
($p1,$p2,$p3) = /$match/;

This matches against $_, which doesn't change between calls to file_eval. Since you have already matched, you could just do:

($p1, $p2, $p3) = ($1, $2, $3);

Abigail

Replies are listed 'Best First'.
Re: Re: Getting same output doing pattern matching
by tariqahsan (Beadle) on May 22, 2003 at 04:31 UTC
    Abigail,

    Thanks a lot! It worked.