Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Keyed list in perl

by ferreira (Chaplain)
on Mar 13, 2007 at 14:25 UTC ( #604537=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (chart ((1 ((title title-1) (xlable X-lab) (ylable Y-lab) (description
    + desc1) (type line) (series ((1 ((x-data (1 2 3 4 5)) (y-data (20 90 
    +60 50 30))))))))))
    
  2. or download this
    [
      "chart",
    ...
        ],
      ],
    ]
    
  3. or download this
    {
      chart => {
    ...
            ylable      => "Y-lab",
          },
    }
    
  4. or download this
    use Data::Dump qw(dump);
    print "x_data: ", dump($keyed_list->{chart}->{series}->{"x-data"}), "\
    +n";
    ...
    # which outputs
    #x_data: [1, 2, 3, 4, 5]
    #y_data: [20, 90, 60, 50, 30]
    
  5. or download this
    package Data::SExpression::Special;
    
    ...
    # and then you got
    #x_data: [1, 2, 3, 4, 5]
    #y_data: [20, 90, 60, 50, 30]
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2019-11-22 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (113 votes). Check out past polls.

    Notices?