S
sanjeeb
hey
i want to make the filhandle to go back to the previousline.
snippet:
while(<ARGV>)
{
if($line mathes)
{
#do this
}
else
{
# Go back the handle to the previous line or may be multiple line
#
}
}
i want to make a wrapper function where the argument will be the "How
mnay lines to be back" and the handle.
I know we can do by using a buffer but i dont want to use becuase the
line number argument can be big.
Is there any one have solution.
Regards
sanjeeb
i want to make the filhandle to go back to the previousline.
snippet:
while(<ARGV>)
{
if($line mathes)
{
#do this
}
else
{
# Go back the handle to the previous line or may be multiple line
#
}
}
i want to make a wrapper function where the argument will be the "How
mnay lines to be back" and the handle.
I know we can do by using a buffer but i dont want to use becuase the
line number argument can be big.
Is there any one have solution.
Regards
sanjeeb