in reply to Re: Regular expression double grouping negation headache
in thread Regular expression double grouping negation headache

local(",=",","$\"="\n");
Would you please break this down for me? I don't understand it is supposed to do.

---
"A Jedi uses the Force for knowledge and defense, never for attack."

Replies are listed 'Best First'.
Re: Re: Re: Regular expression double grouping negation headache
by BrowserUk (Patriarch) on Jun 29, 2002 at 21:24 UTC

    It should (of course) have been (and now is:)

    local ($,=",", $\="\n");

    Thanks for drawing it to my attention.

      Okay, so it looks like you're trying to print out @ARGV more cleanly by defining the output field separator as a comma and the output record separator as a newline. Cool.

      Just for TMTOWTDI, here's what I usually do:
      use Data::Dumper; print Dumper(\@ARGV);

      ---
      "A Jedi uses the Force for knowledge and defense, never for attack."