- or download this
while(<DATA>) {
while(/\b$word\b/g) {
...
scalar(split /\s+/, $`)+1,"\n";
}
}
- or download this
Use of implicit split to @_ is deprecated
- or download this
scalar(my @s = split /\s+/, $`)+1
- or download this
while(<DATA>) {
my @arr = ();
...
join("\t",@arr) ,"\n"
if @arr;
}