Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Passing a hash byreference to a subroutine

by edimusrex (Monk)
on Apr 06, 2017 at 20:09 UTC ( [id://1187342]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my $existing_users = $dbh->selectall_hashref("SELECT `UserName`, `
    +LastAccessDate`, `Ignore` FROM $status_database.`Status`",1);
    
  2. or download this
        'user1' => {
            'UserName' => 'user1',
    ...
            'Ignore' => 'N',
            'LastAccessDate' => '0000-00-00'
        },
    
  3. or download this
        send_to_sub(%{$existing_users});
    
    ...
            print Dumper(\$existing_users);
            exit;
        }
    

Log In?
Username:
Password:

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

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

    No recent polls found