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