Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Secret Perl Operators: the boolean list squash operator, x!!

by blazar (Canon)
on Jul 17, 2008 at 22:32 UTC ( #698464=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    my @part = (
    my $uri = join '/', @part;
  2. or download this
    my @part = map defined $_->[-1] ? $_->[0] : (), 
      ['' => 1],
      ['admin' => $is_admin_link],
      [$subsite], [$mode => 1], [$id], [$submode];
  3. or download this
    my @part = map +(ref) ? (defined $_->[-1] ? $_->[0] : ()) : $_, 
      ['admin' => $is_admin_link],
      [$subsite], $mode, [$id], [$submode];

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://698464]
[erix]: yeah... trepidation
Corion quivers with antici...
[choroba]: if you turn off autocommit and run a prepared statement which fails, the transaction is automatically rolled back, at least in DBD::Pg
[erix]: at least, I'll know where to find the documentation :P
[choroba]: but if there's no prepared statement, there's no rollback
[choroba]: the rollback happens when deallocating the prepared statement in error state.
[choroba]: is this something that Pg enforces, or just a consequence of the Perl implementation?
[choroba]: also, does it make any sense? We run different statements generated from input structures, sometimes prepared statements are involved, sometimes not. We want the behaviour to be consistent.

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (14)
As of 2017-09-19 12:56 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (220 votes). Check out past polls.