On 1/23/07, Wagner, David --- Senior Programmer Analyst --- WGO
<[EMAIL PROTECTED]> wrote:

    $MyData =~ s/[[:cntrl:]]/ /g if ( $MyData =~ /[[:cntrl:]]/ );

Why the if clause?

I'm not sure I understand your difficulty. But it sounds as if you're
not using seek() (or something similar) to get back to the correct
data position in your file, when you call your subroutine the second
time. If that's not it, can you identify which line of code isn't
doing what you think it should?

Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to