If the target fields in the database are of type CHAR (not VARCHAR), you can make DBI do so by:
$dbh->{ChopBlanks} = 1;Some DBD's do extend this behavior to VARCHAR fields (when the database it too stupid to do so itself, as the ANSI standard tells it to) or when VARCHAR effectively is a CHAR internally (because the database doesn't support VARCHAR).
YMMV
In reply to Re^4: Reading (the same) data in different ways & memory usage
by Tux
in thread Reading (the same) data in different ways & memory usage
by Neighbour
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |