Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: spliting a table into individual columns

by naChoZ (Curate)
on Dec 21, 2007 at 15:59 UTC ( #658466=note: print w/ replies, xml ) Need Help??


in reply to Re^2: spliting a table into individual columns
in thread spliting a table into individual columns

As you are a beginner, I just wanted to point you to a valuable tool bundled right into perl, Data::Dumper. My pointing this out won't necessarily _solve_ your problem, but it will go a long way towards helping you _visualize_ it.

All you need to do is put use Data::Dumper; in your script. Then you'll be able to use it to display the contents of your variables with a line like:

print Dumper( $foo );

So, you might use it in your script to display your @s array, or within your foreach loop to show the current value of your $line variable.

Keep Data::Dumper in mind. It's helped me learn all sorts of things in perl because it makes it so easy to actually see what's happening in a script.

--
naChoZ

Therapy is expensive. Popping bubble wrap is cheap. You choose.


Comment on Re^3: spliting a table into individual columns
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://658466]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-07-04 16:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls