in reply to Re: replace at the begining
in thread replace at the begining

s/(?<!<)p\sclass=/<p\sclass=/;
Using of space as '\s' why s is displayed between p and class
<psclass="Hi"> <p class="new">

Replies are listed 'Best First'.
Re^3: replace at the begining
by Melly (Chaplain) on Aug 20, 2009 at 11:37 UTC
    My mistake - \s means a whitespace character, which can be several things (a space, a tab, etc.). So it makes no sense as a substitution character (of the various options, which should perl use?).
    map{$a=1-$_/10;map{$d=$a;$e=$b=$_/20-2;map{($d,$e)=(2*$d*$e+$a,$e**2 -$d**2+$b);$c=$d**2+$e**2>4?$d=8:_}1..50;print$c}0..59;print$/}0..20
    Tom Melly, pm (at) cursingmaggot (stop) co (stop) uk