in reply to Equivalent code for input line operator on a scalar?

If I understand corrently, you want to look at the FileHandle module.
$fh = FileHandle::new('File Name','mode'); $fn -> open('mode'); while($fh->getline()) { #stuff goes here } $fh -> close();

(Untested, and Bear-ly proof read.)

----
I Go Back to Sleep, Now.

OGB