A
Amaninder
Hi everyone
I am new to perl and i am encountering a problem with regrex.
In the following code i want to delete "3)" from $string using $a. For
some reason it is giving me an error. Could any one know how to fix it?
#!/usr/bin/perl -w
use strict;
my $a = "3)";
my $string = "3) <MEM0__I__36__antenna36> - Programmed" ;
$string =~ s/$a// ;
print $string;
Regards
Amaninder Saini
I am new to perl and i am encountering a problem with regrex.
In the following code i want to delete "3)" from $string using $a. For
some reason it is giving me an error. Could any one know how to fix it?
#!/usr/bin/perl -w
use strict;
my $a = "3)";
my $string = "3) <MEM0__I__36__antenna36> - Programmed" ;
$string =~ s/$a// ;
print $string;
Regards
Amaninder Saini