in reply to
Can't "last" outside a loop block
if this condition is false the script should quit else it should proceed
That is not what 'last' is for.
To exit a script use
exit
, perverse, I know. Or maybe you want to
die
.
Comment on
Re: Can't "last" outside a loop block
In Section
Seekers of Perl Wisdom