> Can someone tell me how I can break out  of a foreach loop before the end?

Use the 'last' command.  See
http://www.perldoc.com/perl5.6/pod/func/last.html for an explanation of how
to use it.  It works for breaking out of any loop e.g. foreach, while,
until.

Best wishes,

Rachel




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to