Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Mis-aligned Data Output

by 2teez (Vicar)
on Jun 09, 2015 at 06:46 UTC ( #1129615=note: print w/replies, xml ) Need Help??

in reply to Mis-aligned Data Output

In addition to what eyepopslikeamosquito already said and using the data presented, though the OP didn't show any. One can also look at these modules:

  • Perl6::Form
    use Perl6::Form; my @vals = ( [ "hello there", 9, 7, 42, 3.14159 ], [ "another string", 12, 9, 123, 69.123 ], ); print form "Words |Value1 |Value2 |Value3 |Value4"; for my $r (@vals) { print form "{<<<<<<<<} |{||||} |{||||} |{|||||} |{]]]]]} ", $r->[0], $r->[1], $r->[2], $r->[3], $r->[4]; }
  • Text::Table
    use Text::Table; my $tb = Text::Table->new( "Words", "Value1", "Value2", "Value3", "Value4 +" ); $tb->load(@vals); print $tb;

You might have to look at the documentation of these modules.

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2021-04-10 22:57 GMT
Find Nodes?
    Voting Booth?

    No recent polls found