Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Data structures drive logic! (was Re3: Passing / evaluating / dieing on one line...)

by dragonchild (Archbishop)
on Apr 05, 2002 at 16:05 UTC ( [id://156961]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %Columns = (
        'label' => 0,
    ...
        $Columns[$col_name} = column_exists( \@data, $_[1] || $Columns{$co
    +l_name} );
        die if $Columns{$col_name} == -1;
    }
    
  2. or download this
    my %Columns = (
        'label' => {
    ...
            column_exists( \@data, $_[1] || $Columns{$col_name}{default} )
    +;
        die if $Columns{$col_name}{exists} == -1;
    }
    
  3. or download this
    do_A; do_B; do_C;
    do_D;
    ...
    do_E;
    do_A; do_B; do_C;
    do_C;
    
  4. or download this
    for (\&do_D, \&do_E, \&do_C) {
        do_A; do_B; do_C;
        $_->();
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-26 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found