in reply to Reaped: mysql...
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 ;)'
|
|---|