If you are wanting to 'truncate' a string before inserting it into a database, then use substr:
Hope this helps,my $field = 'big long string...'; $field = substr($field,0,255); # or a regex (slower of course) $field =~ s/^(.{255}).*$/$1/;
jeffa
'Hey, i _tried_ to turn this into a Perl question ;)'In reply to (jeffa) Re: mysql...
by jeffa
in thread Reaped: mysql...
by NodeReaper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |