Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Having to specify $_

by mt2k (Hermit)
on Dec 09, 2002 at 03:01 UTC ( #218437=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $dbh = DBI->connect( ... );
    my $sth = $dbh->prepare ( ... );
    $sth->execute ( @placeholders );
    
    push @results, $_ while ($sth->fetchrow_hashref);
    
  2. or download this
    push @results, $_ while ($_ = $sth->fetchrow_hashref);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2022-10-05 14:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (24 votes). Check out past polls.

    Notices?