<html>
<body>
$match = 1 looks a bit dodgey - might mean $match = $1 to capture the
comment line.<br><br>
<br><br>
At 2003/06/23 02:26 PM, Pritesh Jewan wrote:<br><br>
<blockquote type=cite class=cite cite><font face="arial" size=2>Hello
people,<br>
</font><br>
<font face="arial" size=2>&nbsp;<br>
</font><br>
<font face="arial" size=2>I have a few regular expressions from a script
that I am trying to update and needed some assistance with what the
expression mean:<br>
</font><br>
<font face="arial" size=2>&nbsp;<br>
</font><br>
<font face="arial" size=2>===============================<br>
</font><br>
<font face="arial" size=2>while(&lt;GWTABLE&gt;){<br>
</font><br>
<font face="arial" size=2>next if (/^#/);<br>
</font><br>
<font face="arial" size=2>next if (/^$/);<br>
</font><br>
<font face="arial" size=2>$match = 1;<br>
</font><br>
<font face="arial" size=2>&nbsp;<br>
</font><br>
<font face="arial" size=2>I'm trying to understand the second and third
line.<br>
</font><br>
<font face="arial" size=2>===============================<br>
</font><br>
<font face="arial" size=2>The script has this line in a few places. Can't
seem to find any doco that would explain what it means:<br>
</font><br>
<font face="arial" size=2>&nbsp;<br>
</font><br>
<font face="arial" size=2>s(\n)();<br>
</font><br>
<font face="arial" size=2>===============================<br>
</font><br>
<font face="arial" size=2>&nbsp;<br>
</font><br>
<font face="arial" size=2>s/\n$//;<br>
</font><br>
<font face="arial" size=2>&nbsp;<br>
</font><br>
<font face="arial" size=2>===============================<br>
</font><br>
<font face="arial" size=2>(!/^$/)||next;<br>
</font><br>
<font face="arial" size=2>(!/^#/)||next;<br>
</font><br>
<font face="arial" size=2>&nbsp;<br>
</font><br>
<font face="arial" size=2>Any assistance is greatly appreciated<br>
</font><br>
<font face="arial" size=2>&nbsp;<br>
</font><br>
<font face="arial" size=2>Regards<br>
</font><br>
<font face="arial" size=2>Pritesh<br>
</font><br>
<font face="arial" size=2><b><i>&nbsp;<br>
</i></b></font><br>
<font face="arial" size=2><b><i>&nbsp;<br>
</i></b></font><br>
<font face="arial" size=2><b><i>Pritesh Jewan <br>
Aptronics (Pty) Ltd</b><br>
<b>Tel&nbsp;&nbsp; : +27 11 791 0180</b><br>
<b>Fax&nbsp; : +27 11 791 0183</b><br>
<b>Cell : 084-677-2486</b><br>
<b><a href="mailto:pritesh@aptronics.co.za">pritesh@aptronics.co.za</a><br>
</i></b></font><br>
<font face="Times New Roman, Times">&nbsp;<br>
</font><br>
<font face="Times New Roman, Times">&nbsp;</font></blockquote>
<x-sigsep><p></x-sigsep>
<tt><br>
<font face="Courier New, Courier" size=2>Spike Hodge<br><br>
UNIX Programmer<br>
</font></tt><font face="Courier New, Courier" size=2>M-Web
Technology<br>
</font><tt>021 596 8496<br>
082 901 5265<br><br>
</tt>Click here and make M-Web your homepage<br>
<a href="http://homepage.mweb.co.za/" eudora="autourl">http://homepage.mweb.co.za</a></body>
</html>