in reply to Re: Removing files listed in another file
in thread Removing files listed in another file

You cheat. The error message comes from the rm system command. :-)

Anyway, I believe the range operator is evaluated in scalar context since it returns a sequence number until the file is exhausted.

s::a::n

  • Comment on Re: Re: Removing files listed in another file

Replies are listed 'Best First'.
Re: Removing files listed in another file
by Abigail (Deacon) on Jul 02, 2001 at 20:38 UTC
    Anyway, I believe the range operator is evaluated in scalar context since it returns a sequence number until the file is exhausted.

    You got it backwards. Context isn't determined by what the expression evaluates to. Context is determined by what is done to the value of an expression. The value of .. is ignored, hence, .. is in void context. Regardless whether it pushed a return value on the stack that got discarded anyway.

    -- Abigail