Using regular expressions I match a criteria in a text string, such as: @duration = $string =~ /\sduration=(.*?)\s/;
The first element in duration contains "1.23", in a string format When I try to insert $duration[0], into a field of integer type in a database, I get the Following error: Error Column "duration" is of type integer but expression is of type character varying How can I convert my string "1.23" into a integer value, so I can insert correctly in the database Thanks in advanced -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>