Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Process Text File and Write to Database

by Blackavar (Initiate)
on Nov 20, 2009 at 20:04 UTC ( [id://808516]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Process Text File and Write to Database
in thread Process Text File and Write to Database

It looks like I don't understand the use of 'next' in this context,
Yes. 'next' means "exit the block I'm in now, and skip anything (other than a continue block) afterwards." Every time you called 'next', your program skipped directly to the next iteration of the loop without going any further - in your original program, that's why only the
my $name = $connect->quote($_); next;
parts of the loop were being executed.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2025-07-14 16:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.