Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Sorting SQL results

by roboticus (Chancellor)
on Oct 11, 2013 at 18:03 UTC ( [id://1057934]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $SQL = "select userid a, giftid b ....";
    . . .
    print F "$row_ref->{$_} " for sort keys %$row_ref;
    
  2. or download this
    print F "$row_rf->{$_} for qw( userid gifid );
    
  3. or download this
    while ($row_ref = $ST->fetchrow_arrayref) {
        print F "$row_ref->[$i] " for 0 .. $#{$row_ref};
    
  4. or download this
    print F join(" ", @$row_ref);
    

Log In?
Username:
Password:

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

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

    No recent polls found