2009/11/29 raphael() <raphael.j...@gmail.com>: > Hi, > > I want the below if loop to end if it cannot find any match & print the die > message. > However it just exit without hitting my "die"
> Any Ideas? > Lots. First, give us some more information regarding which data you're comparing to what. In the code example you gave, I have no idea what do you look for where. As such, I can only guess that the reason it exit without die-ing is that it fails to find a match here m/^$number\s+(\S+)\s+(.*)$/ . However, as I mentioned, without further data, this is only a guess. Also, any warnings, or output would be most welcome to both us, and, in the future, you. -- Erez "The government forgets that George Orwell's 1984 was a warning, and not a blueprint" http://www.nonviolent-conflict.org/ -- http://www.whyweprotest.org/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/