Re: substr question

2006-06-27 Thread Rob Dixon
David Gilden wrote: > 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 Hi

Re: substr question

2006-06-25 Thread John W. Krahn
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 th

Re: substr question

2006-06-25 Thread Tom Phoenix
On 6/25/06, David Gilden <[EMAIL PROTECTED]> wrote: I am not sure I have the syntax quite right here, any suggestions would be welcome. You can find the syntax for substr, as with any of Perl's built-in functions, in the perlfunc manpage. You should be able to use this command from the command

Re: substr question

2006-06-25 Thread Chad Perrin
On Sun, Jun 25, 2006 at 01:16:13PM -0500, David Gilden wrote: > 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 >

substr question

2006-06-25 Thread David Gilden
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 Thx, Dave Gilden (kora