Using TokeParser, I've managed to assign the following to $GetDate:<br> <span class="smalltype"><em>Date:</em></span> Tue Sep 13, 2005 10:38 pm <br> <span class="smalltype"><em>Subject:</em></span>
Probably as a function of the module, I'm assuming it's compiling the HTML so that when I print back the contents, it comes out as:Tue Sep 13, 2005 10:38 pm
Now because I want to split this guy up and create a timestamp from it, I figure the best plan is to assign it to an array with the following statement:Tue Sep 13, 2005 10:38 pm
And here's the contents of the array:my @date = split /\s+/, "$GetDate";
Obviously, the nonbreakable spaces ( ) are preventing me from getting the rest of it split apart. What do I do to clear this up?0 1 Tue Sep 13, 2005 2 10:38 3 pm 4
I know there's some time modules out there, but I was just going to try this operation manually as I have the impression that's the best way to keep the speed up on an already deathly slow script. Is this a good plan, or am I just making more work for myself?
Thanks!
In reply to Array problem when parsing HTML by SpacemanSpiff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |