Tara Calishain wrote:

> three mice
>
> While some of the lines have semicolons:
>
> three;mice
>
> For the semicolon'd lines, I need to remove the semicolons and
> surround them with  %22, like so:
>
> %22three mice%22

Loop through all the lines (assuming the line is in $str) and ad this line
$str = '%22' . $str . '%22' if ($str =~ s/;/ /g);

I am not sure here, are you doing some sort of url encoding? If so there might
be a module out there that does this for you.

>
>
> but I do NOT surround the non-semicolon'd lines with %22.
>
> This is probably stupid easy but I can't even get my fingers around the
> problem. Any hints
> would be appreciated.
>
> Thanks,
>
> Tara
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to