> New line characters in the substitution string, perhaps? Dot doesn't 
> match those unless you modify the line:
>
> $solar_info =~ s/<\/solar>.*/,/s;
>
Kevin, may have something there - there is an inexplicable white space 
when the tags are doubled up.

I.e.

<solar>1,2,3,4,5</solar> <solar>6,7,8,9,0</solar>

when it is doubled up I want to end up with just

1,2,3,4,5,

so I can split it out into an array. I'll give the abaove a bash (no pun 
intended) when I get home tonight...

Cheers,
Lee




-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/

Reply via email to