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

Re^4: Extracting only required length in a column in perl DBI

by Thomas Kennll (Acolyte)
on Jan 15, 2013 at 13:08 UTC ( #1013395=note: print w/replies, xml ) Need Help??


in reply to Re^3: Extracting only required length in a column in perl DBI
in thread Extracting only required length in a column in perl DBI

What I meant is something like this my ($ansb_cktid, $ansb_mcn, $ansb_soc) =unpack("A3 A3 A6")
  • Comment on Re^4: Extracting only required length in a column in perl DBI

Replies are listed 'Best First'.
Re^5: Extracting only required length in a column in perl DBI
by marto (Bishop) on Jan 15, 2013 at 14:02 UTC

    I'm of the mind set that you shouldn't pull back more data than you need then post process it, when you can easily return only what you need.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1013395]
help
Chatterbox?
[thezip]: Gosh my Unix is lacking these days... How can I get the line count of all CSV files contained within a directory hierarchy containing subdirectories of the CSV files?
[thezip]: Something like: xargs find . -mindepth 2 -name '*.csv' | wc -l or such?
[thezip]: oops... My mind is backwards (this works): find . -mindepth 2 -name "*.csv" | xargs wc -l

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2016-12-06 17:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (113 votes). Check out past polls.