Y
Yang
I want to get everything between () in the file, say (5), (6), so I
wrote the following:
while(my $line = <FIN>){
chomp $line;
if($line =~ /\(\d*\)/{
print $1;
}
}
But it always returns error saying that $1 is uninitialized.
wrote the following:
while(my $line = <FIN>){
chomp $line;
if($line =~ /\(\d*\)/{
print $1;
}
}
But it always returns error saying that $1 is uninitialized.