in reply to Re: replacing string in multi-line text file
in thread replacing string in multi-line text file

Thank you for replying.

My webhost is erroring out on this line:
use Modern::Perl;

Ideas?
  • Comment on Re^2: replacing string in multi-line text file

Replies are listed 'Best First'.
Re^3: replacing string in multi-line text file
by davido (Cardinal) on Mar 25, 2011 at 16:03 UTC

    For starters, use strict, use warnings, change your file opens to the canonical "or die" style, and convert 'say' to 'print' with a backslash-n at the end. With respect to the example I provided, making those changes will enable you to remove the 'use Modern::Perl;' line, with approximately the same intended outcome.


    Dave

Re^3: replacing string in multi-line text file
by Anonymous Monk on Mar 25, 2011 at 14:27 UTC
    Lol, resolve the mysterious error
      sarcasm appreciated and helpful, anonymous. Get a set of balls.

      i know it's a module. how do install on my web host?
        sarcasm appreciated and helpful, anonymous. Get a set of balls.i know it's a module. how do install on my web host?

        You asked for ideas not how to install. You install it like any other module, A Guide To Installing Modules