Can't modify non-lvalue subroutine call
You'll have to use an intermediate variable to do the substitution, and then pass that variable to fill in the placeholder:
my $create_date = $row->find ("CreateDate")->string_value(); $create_date =~ s/(\d\d\d\d-\d\d-\d\d)T(\d\d:\d\d:\d\d+).*00/$1 $2/g; $dbh->do(..., $create_date, ...
Not beautiful, but that's how life is, sometimes :)
In reply to Re: DBI Modifying a bind value
by almut
in thread DBI Modifying a bind value
by journey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |