Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: tabular format of data

by tangent (Curate)
on Feb 18, 2012 at 02:58 UTC ( #954687=note: print w/ replies, xml ) Need Help??


in reply to Re^2: tabular format of data
in thread tabular format of data

You will have to show what you tried, and when entering it put code like so:

<code> YOUR CODE HERE </code>


Comment on Re^3: tabular format of data
Download Code
Re^4: tabular format of data
by deepak_4682us on Feb 18, 2012 at 03:33 UTC
    my $width = length $data[0][0]; # Assume they're all the same length +. my $Width = @{$data[0]}; my $divider = "-" x (($width + 1) * $Width); my $topline = $divider x 2; chop $topline; say $topline; foreach my $line (@data) { print "$_|" for @$line; say "\n$divider"; } ======================= i used the above code but i got an error message saying "cann't call "say " without a package or object reference. Also, in the above code, where i will use the  .. detai

      This is what you do

      <code> print "AROUND ME YOU PUT CODE TAGS\n"; print "Because this is code, when posting on perlmonks, you put code tags around it otherwise it won't look right " </code>

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2015-07-06 08:55 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 (70 votes), past polls