On Dec 1, 6:43 am, [email protected] (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: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
