We don't bite newbies here... much | |
PerlMonks |
Re: same program different outputby MaxKlokan (Monk) |
on Dec 09, 2006 at 12:19 UTC ( [id://588785]=note: print w/replies, xml ) | Need Help?? |
In program I you are checking if the regular expression /[abc][hij]/ matches the string " aj", which it does. In program II you are checking if regular expression / aj/ matches the string "[abc][hij]", which it does not.
In Section
Seekers of Perl Wisdom
|
|