in reply to Substitute strings

File::Slurp has a few issues some critical. Avoid if possible, a replacement would be Path::Tiny, see perlfaq5. Also you should consider formatting your posts properly, the easier they are for people to read the more likely you are to get help. How do I post a question effectively?.

Replies are listed 'Best First'.
Re^2: Substitute strings
by kepler (Scribe) on Sep 12, 2016 at 09:39 UTC

    I'm sorry...

    What I'm trying is $data =~ s/func1(x, \"[^%](.*)/text/gi;
      I'm sorry...

      Sorry is good, but even better would be to go back and fix the formatting problem in your OP so the janitors don't have to be lumbered with it. Please see the Edit link in the node.


      Give a man a fish:  <%-{-{-{-<