On Thu, 2008-10-09 at 16:53 -0400, Charlie Farinella wrote: > I have a string of text that I want to split on the tabs: > > while (<INFILE>) { > my @array = split(/\t/, $_); > > ...manipulate them a little, and print them back out like so: > > print "$array[0],$array[1],$array[2]"; etc. > } > > I normally just print them as above, but I'm thinking there must be a > better way. > What's the most efficient way to print them all out?
use Data::Dumper; print '@array : ', Dumper [EMAIL PROTECTED]; Always use Data::Dumper to view your data structures. See `perldoc Data::Dumper` for details. -- Just my 0.00000002 million dollars worth, Shawn Linux is obsolete. -- Andrew Tanenbaum -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/