[Za-pm] Regular expression help needed

Spike spikeh at mweb.co.za
Mon Jun 23 08:40:50 CDT 2003


$match = 1 looks a bit dodgey - might mean $match = $1 to capture the 
comment line.



At 2003/06/23 02:26 PM, Pritesh Jewan wrote:

>Hello people,
>
>
>
>I have a few regular expressions from a script that I am trying to update 
>and needed some assistance with what the expression mean:
>
>
>
>===============================
>
>while(<GWTABLE>){
>
>next if (/^#/);
>
>next if (/^$/);
>
>$match = 1;
>
>
>
>I'm trying to understand the second and third line.
>
>===============================
>
>The script has this line in a few places. Can't seem to find any doco that 
>would explain what it means:
>
>
>
>s(\n)();
>
>===============================
>
>
>
>s/\n$//;
>
>
>
>===============================
>
>(!/^$/)||next;
>
>(!/^#/)||next;
>
>
>
>Any assistance is greatly appreciated
>
>
>
>Regards
>
>Pritesh
>
>
>
>
>
>Pritesh Jewan
>Aptronics (Pty) Ltd
>Tel   : +27 11 791 0180
>Fax  : +27 11 791 0183
>Cell : 084-677-2486
><mailto:pritesh at aptronics.co.za>pritesh at aptronics.co.za
>
>
>
>


Spike Hodge

UNIX Programmer
M-Web Technology
021 596 8496
082 901 5265

Click here and make M-Web your homepage
http://homepage.mweb.co.za 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/za-pm/attachments/20030623/9cb6108a/attachment.htm


More information about the Za-pm mailing list