Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Table creation

Reply
Thread Tools

Table creation

 
 
Venkatesh can....can...
Guest
Posts: n/a
 
      03-21-2008
How to create a table in perl ?
The table should just be displayed as output in the cli not in any
Database.
can anyone pls help??
 
Reply With Quote
 
 
 
 
Joost Diepenmaat
Guest
Posts: n/a
 
      03-21-2008
"Venkatesh can....can..." <> writes:

> How to create a table in perl ?


Tables aren't built-in types, so you'll have to explain what you
actually want.

> The table should just be displayed as output in the cli not in any
> Database.


What about this?

print <<ENDTABLE;
+-------------------+
| This is a table |
+--------+----------+
| col1 | col 2 |
+--------+----------+
ENDTABLE

> can anyone pls help??


http://catb.org/~esr/faqs/smart-questions.html


--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
 
Reply With Quote
 
 
 
 
J. Gleixner
Guest
Posts: n/a
 
      03-21-2008
Venkatesh can....can... wrote:
> How to create a table in perl ?
> The table should just be displayed as output in the cli not in any
> Database.
> can anyone pls help??


First, you'll likely need some wood and nails. In addition to perl
some Assembly may be required and you'll probably need a saw and
some sand paper and some Java to keep you awake.

If that's not the kind of table you need help in displaying, then
provide a sample of the input, and how you'd like that to be displayed.
 
Reply With Quote
 
Jürgen Exner
Guest
Posts: n/a
 
      03-21-2008
"Venkatesh can....can..." <> wrote:
>How to create a table in perl ?
>The table should just be displayed as output in the cli not in any
>Database.
>can anyone pls help??


perldoc -f printf
perldoc -f format (which will send you to perldoc perlform)

jue
 
Reply With Quote
 
ccc31807
Guest
Posts: n/a
 
      03-21-2008
On Mar 21, 9:22 am, "Venkatesh can....can..."
<venkatesh.sou...@gmail.com> wrote:
> How to create a table in perl ?
> The table should just be displayed as output in the cli not in any
> Database.
> can anyone pls help??


Do you want this in memory, storage, or as some kind of output?

If output, do you ultimately want to save it to a file, print it on
paper, display it to a browser, or export it to another application
such as a database table? I know you mention the monitor, but normally
you wouldn't go to the trouble of displaying something on the monitor
if it were even the least little bit important.

If you just want to display output, you can do it like this:
print "output\n";
print "$output\n";
printf "%s\n", $output;

CC
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to (batch) set EXIF date taken and IPTC creation date and creation time for photos with filenames YYMMDDHHMMSS#.jpg? guercheLE@gmail.com Digital Photography 1 10-04-2005 07:15 PM
From .xsd to table creation Maury ASP .Net 0 07-04-2005 06:24 AM
Table/table rows/table data tag question? Rio HTML 4 11-05-2004 08:11 AM
Could not load type VTFixup Table from assembly Invalid token in v-table fix-up table. David Williams ASP .Net 2 08-12-2003 07:55 AM
RE: Large table creation Yan-Hong Huang[MSFT] ASP .Net 0 06-25-2003 07:02 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57