This will output "the first line". Or if you decide you need to put the file into an array I'd recommend using Dominus' Tie::File module.print scalar <DATA>; __DATA__ the first line the second line
_________
broquaint
In reply to Re: To print one line from a file? Non-loop?
by broquaint
in thread To print one line from a file? Non-loop?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |