Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: CLI formatting

by neniro (Priest)
on Jul 04, 2005 at 08:27 UTC ( [id://472168]=note: print w/replies, xml ) Need Help??


in reply to CLI formatting

An example for using perls builtin format (see http://perldoc.perl.org/perlform.html for details):
my ($name, $type, $len, $null, $pri, $inc); format STDOUT_TOP = Name ---------------- Type ------ Len--- Null Pri- Inc- . format STDOUT = @<<<<<<<<<<<<<<<<<<<| @<<<<<<<<<| @>>>>| @>>| @>>| @>>| $name, $type, $len, $null, $pri, $inc . for (@structure) { ($name, $type, $len, $null, $pri, $inc) = ( $_->{f_name}, $_->{f_type}, $_->{f_length}, $_->{f_nullable}, $_->{f_pri_key}, $_->{f_autoinc}, ); write (STDOUT); }
It's easy to use, and it does all you want, so why do you search another module?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-24 18:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found