in reply to Re: one-liner yields unexpected result
in thread one-liner yields unexpected result

-m- tells Perl to load a specified module before running the program. In my case File::Find::Rule.

  • Comment on Re^2: one-liner yields unexpected result

Replies are listed 'Best First'.
Re^3: one-liner yields unexpected result
by toolic (Bishop) on Feb 13, 2012 at 19:14 UTC
    Try to use -m instead of -m-. From the documentation (perldoc perlrun)
    If the first character after the -M or -m is a dash (-) then the 'use' is replaced with 'no'.
      no Module; actually loads the module, then calls unimport on it. Since the OP isn't using anything that depends on an import having run, it shouldn't matter whether no or use is used.
Re^3: one-liner yields unexpected result
by BrowserUk (Patriarch) on Feb 13, 2012 at 19:12 UTC
    -m- tells Perl to load a specified module before running the program.

    No, it should be -mFile::Find::Rule, not -m-Fi...


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?