Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: CLI formatting

by neniro (Priest)
on Jul 04, 2005 at 08:27 UTC ( #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? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2023-01-30 10:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?