Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by misterperl (Pilgrim)
on May 05, 2022 at 15:56 UTC ( [id://11143599]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        ### grabbing every column
        my $dbCommand = qq^select ^;
    ...
            $dbCommand .= "$_,";
        }
        $dbCommand =~ s/,$//;
    
  2. or download this
    my $dbCommand = 'select '.join ',',@ticketsFields;
    
  3. or download this
    my @newArray = @{$rows};
    
  4. or download this
     for(my $x = 0; $x < $ticketsFieldsSize; $x++)
                {
    ...
                    $GenericData{$ticketsFields[$x]} = $newArray[$x];
                }
    
  5. or download this
    @GenericData{@ticketsFields} = @$rows;
    
  6. or download this
    \@ticketsRecords;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-19 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found