Hi,
    I have attached my routine and its output. I dont understand the 
output differemce between the @subj and $subjectno ? Why do I lose the 
trailing zeros ?

Thanks Mandar
 
@subj= cat somefile.txt
print @subj;

foreach (@subj) {
  $subject_no=chomp($_);  
  print $subject_no,"\n";       
}

----------------------
Output
---------------------
@subj
01
02
03

$subject_no
1
2
3



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to