in reply to Strange behaviour (bug?) of use strict 'subs' (was: ... strict 'vars')

Behavior confirmed in 5.8.0-RC2 (linux) as well. No bare word warnings anywhere if a list-context range op is used in a statement prior to the bare words.
use strict; use warnings; print 1..2,"\n"; die 'bug' if foo eq bar;

Replies are listed 'Best First'.
Re: Re: Strange behaviour (bug?) of use strict 'vars'
by Joost (Canon) on Jun 24, 2002 at 09:43 UTC
    Hmm... My Perl 5.8.0 RC 2 (i686-linux-thread-multi-64all-ld) on linux (RedHat 7.3) gives a Bareword "foo" not allowed while "strict subs" in use at - line 5. on that code. It also raises an error on the orgininal post when use strict is in effect.

    Can anyone test this on another 5.8.0 RC 2 ?

    -- Joost downtime n. The period during which a system is error-free and immune from user input.
      My mistake. It appears I wasn't calling the perl I thought I was. 5.8.0-RC2 (linux) does raise exceptions on the code just as Joost observes. My apologies for any confusion.