Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Feedback Appreciated on text-parsing, SQL querying subroutine

by saberworks (Curate)
on May 31, 2006 at 19:25 UTC ( [id://552910]=note: print w/replies, xml ) Need Help??


in reply to Re: Feedback Appreciated on text-parsing, SQL querying subroutine
in thread Feedback Appreciated on text-parsing, SQL querying subroutine

The above code can be written as my ( $did1,$did2,$score1,$score2 ) = (split("\t", $_))[0..3];
As a curiousity, how come you are subscripting split? Split returns a list, so he should be safe with just...
my ($did1, $did2, $score1, $score2) = split("\t", $_);
Right?

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-03-28 11:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found