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

Re^4: dbi error handling

by runrig (Abbot)
on Dec 22, 2010 at 18:16 UTC ( #878623=note: print w/replies, xml ) Need Help??

in reply to Re^3: dbi error handling
in thread dbi error handling

Huh, I didn't see that in the docs before (or forgot about it). $_[0] is the first argument to the function, i.e. the first element of the @_ array.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://878623]
[ovedpo15]: another question about regex. if I have a string like this: "a/b/,c/d/e,5" I would like to remove the string after the last comma so the output will be "a/b/,c/d/e" how to do so?
[Corion]: ovedpo15: You could split on comma, and then join everything together, except the last part. Or you could match and make sure that the last part has no comma, like qr!,[^,]+$!, or you could use rindex.

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2018-05-27 10:29 GMT
Find Nodes?
    Voting Booth?