#!/usr/bin/perl -w
open IN, "data";
while($file=<IN>)
{
@line = split(/ \= /,$file);
if ($line[0] =~ m/^sample$/g)
{
@sample = $line[1];
foreach (@sample)
{
print @line; unable to proceed from here
}
}
}
In reply to Re^2: How can I print part of a line between two different lines
by ramukavuri
in thread How can I print part of a line between two different lines
by ramukavuri
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |