Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: DBI connect

by erix (Parson)
on Nov 02, 2011 at 14:35 UTC ( #935407=note: print w/replies, xml ) Need Help??


in reply to DBI connect

It depends on the DBI driver. PostgreSQL/DBD:Pg can work without dbname: for instance, it will default to the user name as database name, or it can take the value of environment variable 'PGDATABASE'.

Updated 2011.12.14 (default dbname is user name, which is not necessarily 'postgres'...)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://935407]
help
Chatterbox?
[1nickt]: Hm well actually I guess it's not the trailing semi-colon that's at issue there, it's disambiguation between the ellipsis and the binary flip-flop
[1nickt]: Although the example given does not produce an error as stated, on my perl.
[1nickt]: perl -wE 'say for map { ... } 1..3;' # "Unimplemented at -e line 1" ... <c>perlsyn says that should throw a syntax error...
[karlgoethebier]: 1nickt: "Edge cases..." Yes, it seems so. Thanks Nick

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2017-11-18 19:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?