Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Why is the error thrown from close(FH) when the error is the missing <> on while(FH)? ( line number mismatch, look above, look before )(Bareword found in conditional)

by Anonymous Monk
on Feb 01, 2013 at 09:03 UTC ( [id://1016478]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ cat junk
    while( STDIN ){
        @ARGV=2;
    ...
    $ perl -w -Mstrict junk
    Bareword "STDIN" not allowed while "strict subs" in use at junk line 5
    +.
    Execution of junk aborted due to compilation errors.
    
  2. or download this
    $ cat junk
    while( STDIN ){
        @ARGV=2;
    }
    
  3. or download this
     $ cat junk
    while( STDIN ){
        @ARGV=2;
    }
    close STDIN;
    
  4. or download this
    $ perl -Mstrict junk
    Bareword "STDIN" not allowed while "strict subs" in use at junk line 4
    +.
    Execution of junk aborted due to compilation errors.
    
  5. or download this
    $ perl -w junk
    Bareword found in conditional at junk line 4.
    Terminating on signal SIGINT(2)
    
  6. or download this
    $ cat junk
    while( STDIN ){
        @ARGV=@ARGV;
    ...
    g     <1> close vK/1 ->h
    f        <#> gv[*STDIN] s ->g
    junk syntax OK
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1016478]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-13 06:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found