[ubuntu-uk] [OT] Quick Perl question
LeeGroups
mailgroups at varga.co.uk
Wed Jul 14 20:36:08 BST 2010
> 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
More information about the ubuntu-uk
mailing list