[Israel.pm] regex question

Offer Kaye oferk at oren.co.il
Sun Jan 25 06:30:29 PST 2004


> 
> If the "on error" statement cant be the last command before "end" 
> please spread a little about your requirements...
> 
>  Regards,
> Dovalle
> 

Hi Yuval,
Adding a bit to Dovalle's excellent asnwer, you can save each line between the start and end lines of the function/sub to a temporary array. When reaching the end, insert the "On Error" line to an arbitrary location of your choice as needed, and finally print out the array. This will get around the problem (it is exists) that the "On Error" statement cannot be the last command before the "end" statement.

Regards,
----------------------------------
Offer Kaye






More information about the Perl mailing list