in reply to Re: Re: While loop and pattern match (was Re: need help)
in thread Using regular expressions on user input w/o while: unitialized value

Or you can keep the implicit match, if you add the explicit assignement to $_ before. :-) Which sometimes makes the code briefer and therefor easier to read, and sometimes makes it too short in the wrong place and therefor harder to read. (As a beginner, you should probably stick to the explicit syntax for a while.)

Makeshifts last the longest.

  • Comment on Re^3: While loop and pattern match (was Re: need help)