Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Problem loading txt file into mysql

by rnahi (Curate)
on Dec 29, 2005 at 12:19 UTC ( #519769=note: print w/replies, xml ) Need Help??


in reply to Problem loading txt file into mysql

qw stands for "quoted words", and it will produce a list.

When you assign the result of qw to a scalar, it will get the last element of the list.

$ perl -le '$x = qw(a b c); print $x' c $ perl -le '$x = q(a b c); print $x' a b c

Replace qw() with q() and all will be well.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://519769]
help
Chatterbox?
[perldigious]: "for how I roll"... ahhh, I see what you did there stevieb.
[MidLifeXis]: Has anyone been successful running prove under Windows with a --jobs parameter? It appears, even with (what appears to be) appropriately- configured parameters and up to date Test::Harness/TAP ::Harness that tests are still running serially.

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













    Results (112 votes). Check out past polls.