Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

How to create a "proper" array?

by bfdi533 (Friar)
on Apr 10, 2015 at 19:27 UTC ( [id://1123065]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $graph = Text::Graph->new( 'Bar' );
    print $graph->to_string( [1,2,4,5,10,3,5],
                             labels => [ qw/aaaa bb ccc dddddd ee f ghi/ ]
    +,
                           );
    
  2. or download this
    while (@rowdata = $sth->fetchrow_array()) {
        push (@chart_data, $rowdata[2]+0);
        push (@chart_labels, $rowdata[0].' '.$rowdata[1].':00');
    }
    $graph->to_string(@chart_data, labels=>@chart_labels);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-23 23:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found