Menu

#78 Problem with Replace & CReplace

open-works-for-me
None
5
2006-07-13
2005-09-15
Anonymous
No

THE-3.2B1
Using a regina macro I am trying to replace a line.
1: #!/usr/bin/perl
with
#!/usr/bin/perl

Every other line replaces perfectly. But when I do a
replace on that first line I get sent back to the main
screen and I have to ctrl-c to get returned to the edit
session. The code snippet is below. Not sure if this
is THE bug or regina bug.

do until eof.1 = 'ON'
'extract /curline'
parse value curline.3 with junk ':' RepLine
RepLine = strip(RepLine,l)
'Replace' RepLine
'next'
'extract /eof'
end

Thanks
Mark Pace

Discussion

  • Mark Hessling

    Mark Hessling - 2006-07-13
    • assigned_to: nobody --> rexx
    • status: open --> open-works-for-me
     
  • Mark Hessling

    Mark Hessling - 2006-07-13

    Logged In: YES
    user_id=86185

    Please try this with 3.2; works for me.

     
  • LesK

    LesK - 2011-11-07

    Could it be that you have LINEND ON # ?

     

Log in to post a comment.