in reply to working with files

open(IN, 'input.txt') or die $!; print map { "output: $_" } grep { /^@/ } <IN>;
--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg