Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: MySQL with DBI: Access denied for user

by vinoth.ree (Prior)
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 examining the Monastery: (9)
As of 2015-07-08 01:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls