Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Sort label

by jdporter (Paladin)
on Jul 18, 2005 at 01:30 UTC ( [id://475619]=note: print w/replies, xml ) Need Help??


in reply to Sort label

my %G; { local $_ = 'G%'; $str->bind_param( 1, SQL_VARCHAR ); $str->execute(); my( $label, $num ); $str->bind_column( undef, \$label, \$num ); while ( $str->fetch() ) { my $lbl = $label; $lbl =~ s/^G/F/; $G{$lbl}++; } } { local $_ = 'F%'; $str->bind_param( 1, SQL_VARCHAR ); $str->execute(); my( $label, $num ); $str->bind_column( undef, \$label, \$num ); while ( $str->fetch() ) { print "$label $num\n" unless exists $G{$label}; } }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-03-28 18:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found