On Dec 1, 6:43 am, whereismel...@gmail.com (Melvin) wrote: > Hi I have a file in the following format > > 111 > 222 > 333 > > Now I need to print the following output from the given input file as > 111 222 333 >
The versatile File::Slurp can be a handy shortcut: # File::Slurp will croak if there's a read error my @lines = File::Slurp::read_file( $ARGV[0] ); chomp @lines; print "@lines\n"; -- Charles DeRykus -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/