Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: MySQL with DBI: Access denied for user

by vinoth.ree (Monsignor)
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

Replies are listed 'Best First'.
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 romping around the Monastery: (6)
As of 2016-10-01 18:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (3 votes). Check out past polls.