Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021582]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2018-05-21 09:53 GMT
Find Nodes?
    Voting Booth?