in reply to Re^2: Reading specific lines in a file
in thread Reading specific lines in a file

If you want to eliminate `cat wordlist`, you can use File::Slurp or do { local @ARGV='wordlist'; <> }.

Replies are listed 'Best First'.
Re^4: Reading specific lines in a file
by gurpreetsingh13 (Scribe) on May 20, 2014 at 09:16 UTC
    That's right. But again, more than one line.
    use statement, then slurp statement, then print