in reply to Re^2: using while, first line was skipped
in thread using while, first line was skipped

No. Just use the file handle instead of the default one:
while (my $line = <$fh>) {
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^4: using while, first line was skipped
by rendus (Initiate) on Jul 27, 2015 at 15:29 UTC

    Thank you so much! It works perfect now. :) Greatly appreciate your kind help and explanation.