A
Amy Lee
Hello,
I'm a newbie in Perl. And I face a problem when I process the data from a
file. My file is like is
0000475568
............
And I hope when some conditions match 'CT1', then can print its contents 'XY0002658-96
0000222541', if match 'CT2' print 'XY0002688-55
0000254147'. However, when I use
if /CT1/
{
print;
}
just print the label, what if I hope print contents, what should I notice?
Thank you very much~
Regards,
Amy Lee
I'm a newbie in Perl. And I face a problem when I process the data from a
file. My file is like is
ZZ0004854-00CT1 XY0002658-96
0000222541
XY0002688-55
0000254147
CT5
0000475568
............
And I hope when some conditions match 'CT1', then can print its contents 'XY0002658-96
0000222541', if match 'CT2' print 'XY0002688-55
0000254147'. However, when I use
if /CT1/
{
print;
}
just print the label, what if I hope print contents, what should I notice?
Thank you very much~
Regards,
Amy Lee