Nathan Wiger <[EMAIL PROTECTED]> writes:

> > > But it isn't "here" that's the problem.  If we just wanted to change
> > > the value "here", we could use my().  The problem is that local()
> > > changes the value for somewhere else as well as here.
> > 
> > Well, as has been pointed out, special^Wlocalized variables are
> > scoped in time, not space, so:
> > 
> >         now $/ = "\n";
> 
> Personally, I like this alot, actually. It emphasizes what's going on
> really well. And it's short!
> 
> As for the "need a verb" argument, my() and our() aren't verbs either.

    $/ = "\n" now;

feels more English somehow. Would almost certainly be a bugger for
perl to parse though.

As for the 'need a verb' argument, it doesn't apply here because the
assignment is the verb.

-- 
Piers

Reply via email to