Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Is there a cleaner way to write this code below, which includes derferencing references, that themselves have to be dereferenced?

by stevieb (Canon)
on May 05, 2022 at 19:50 UTC ( [id://11143603]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        ### execute command
        ### get the data
        $dbHandle=$db->prepare($dbCommand);
        $dbHandle->execute();
        my $data = $dbHandle->fetchall_arrayref();
    
  2. or download this
    my $var1 = 0;
    my $var2 = 1;
    
    # Draw an axis with a pencil and a ruler
    function($var1, $var2);
    
  3. or download this
    my $pencil = 0;
    my $ruler  = 0;
    ...
            $pencil++;
        }
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found