Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
We don't bite newbies here... much
 
PerlMonks  

Re: MySQL with DBI: Access denied for user

by vinoth.ree (Vicar)
on Mar 04, 2013 at 05:00 UTC ( #1021582=note: print w/ replies, xml ) Need Help??


in reply to MySQL with DBI: Access denied for user

1.When reading user input from the standard input stream (STDIN) for instance, you get a newline character with each line of data. chomp() is really useful in this case because you do not need to write a regular expression and you do not need to worry about it removing needed characters.

2.The chomp() function will remove (usually) any newline character from the end of a string. The reason we say usually is that it actually removes any character that matches the current value of $/ (the input record separator), and $/ defaults to a newline


Comment on Re: MySQL with DBI: Access denied for user
Re^2: MySQL with DBI: Access denied for user
by sarpunk (Initiate) on Mar 22, 2013 at 02:16 UTC
    That's good to know about the second point! Thanks!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (18)
As of 2014-04-17 13:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (448 votes), past polls