Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Data::Table showing error

by jeffa (Bishop)
on Oct 27, 2015 at 18:05 UTC ( #1146153=note: print w/replies, xml ) Need Help??

in reply to Data::Table showing error

From your code:

print $t->csv; # Display a 'portrait' HTML TABLE on web.

Question -- do you want to output HTML or CSV? If you wish to output an HTML table as the comment suggests, you might be able to accomplish this with the latest version (v1.04) of my Spreadsheet::HTML module:

use strict; use warnings; use Spreadsheet::HTML qw( portrait ); print portrait( file => 'ravi.csv', sep => '|', table => {border=>1} ) +;


(the triplet paradiddle with high-hat)

Replies are listed 'Best First'.
Re^2: Data::Table showing error
by ravi45722 (Pilgrim) on Oct 28, 2015 at 04:04 UTC

    Sorry, I changed the code but forget to change the comment. My requirement is to group some fields & count how many events occurred.

     Tue Oct 13 00:20:01 2015|189333794|32665|959799899574|Tue Oct 13 00:19:57 2015|Tue Oct 13 00:20:01 2015|CMT|Delivered|none|Submit|0|SMSC_no_error|SMPP|GSM|ASCII|105|92|no||no|no||None|No|DestPrepaid|no|no|0|0|0|0|414061102110510||959790000004|0|0||0|no|no|default_billing|-1|0|no|no|0|0|0|0|1|1|1|1|959790000024|32665|smsgw|78655|Wed Oct 14 00:19:57 2015|SR|||CO|011816714446721970009||Default|0|370870121||0|0||0|||||||||Oct-13-2015  00:19:57.405709|1|1||||||||||0|

    This is example of my input data. In this I want to group 10th (Submit), 13th (GSM), 14th (SMPP) fields & count how many events occurred. In the example the 13th field is SMPP. So don't count this event. Whenever all I fields met the condition then I want to consider it as a event. This is my total requirement.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2022-01-26 12:44 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (69 votes). Check out past polls.