in reply to regex question

Here it works as expected. Well, I had to change $line to $string, but it displays 'atc' when I print @triplets0. What Perl's version are you using?

Igor 'izut' Sutton
your code, your rules.

Replies are listed 'Best First'.
Re^2: regex question
by Rashmun (Initiate) on Feb 07, 2006 at 12:48 UTC
    my apologies for the trouble. It works for me as well now. -Rashmun
Re^2: regex question
by mickeyn (Priest) on Feb 07, 2006 at 13:02 UTC
    Well, it should show 'atc' because the regex performs only 1 match, and 'atc' is the first match for this string.
    what else did you expect ?

    Enjoy,
    Mickey