David Gilden wrote: > Hello, Hello,
> I am not sure I have the syntax quite right here, any suggestions would be > welcome. > > > $line = "Friday, June 23, 2006 12:30 PM" ; > > $last_updated = substr($line, 0, (length($line) -9)); > # remove the time part of time stamp > # the above line is throwing an error What error? It should work. You could also do it like this: substr $last_updated = $line, -9, 9, ''; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>