Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: MySQL with DBI: Access denied for user

by vinoth.ree (Monsignor)
on Mar 04, 2013 at 05:00 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1021582]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2025-04-25 14:30 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.