my $string = q(This is <head> in the string); my $look = q(<head>); my $pos = length($look) + index($string,$look); substr($string,$pos,0)= 'new line'; print $string;
In reply to Re: trying to find <head> in a string
by artist
in thread trying to find <head> in a string
by Hammy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |