|| at Jun 9, 2004 at 1:37 pm
sudhindra k s wrote:
I have a line as shown below:
Now i want to substitute (<sometext>) with blank space. How do i do it.
my $string = '//abc/... (<sometext>)';
$string =~ s/\(\<sometext\>\)//;
I tried s/\(\Q<sometext>\)//g. This isnt working.
Next i have a line as below
Now i want an output //abc. So how do i remove the numeric value and the preceding #?
my $string = '//abc#4';
$string =~ s/\#\d$//;
I also use perl via CLI (perl -e 'test code here') to work out things
like this at times.
Lee.M - JupiterHost.Net