in reply to Re^2: matching patterns
in thread matching patterns
Perhaps a minor point, but why are you capturing "port=" and "unit=" in your regexes
-----------------
s''limp';@p=split '!','n!h!p!';s,m,s,;$s=y;$c=slice @p1;so brutally;d;$n=reverse;$c=$s**$#p;print(''.$c^chop($n))while($c/=$#p)>=1;
? Couldn't it just as easily beif ($line =~/(port=([0-9]+))/)
if ($line =~/port=([0-9]+)/){ $port= $1; };
-----------------
s''limp';@p=split '!','n!h!p!';s,m,s,;$s=y;$c=slice @p1;so brutally;d;$n=reverse;$c=$s**$#p;print(''.$c^chop($n))while($c/=$#p)>=1;
|
---|
In Section
Seekers of Perl Wisdom