Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Grab Current Line of SVG Fileby dinesh_1308 (Initiate) |
on Apr 20, 2019 at 17:26 UTC ( [id://1232834]=note: print w/replies, xml ) | Need Help?? |
$_ will help you to grab current line..
Ex:-
while (<$filehandler>){
print $_; # this prints line by line
if ($_ =~ / # your search pattern goes here/){
}
}
}
In Section
Seekers of Perl Wisdom
|
|