Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Unexpected difference in whitespace parsing in subroutine calls.

by Lexicon (Chaplain)
on Jul 10, 2005 at 11:20 UTC ( [id://473752]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
      my %new = ();
      return grep (!$new{$_}++, @_);
    }
    
  2. or download this
    Chromium:~ lexicon$ perl -l little2.pl 
    Unquoted string "unique" may clash with future reserved word at little
    +2.pl line 7.
    1,2,1
    1,2
    
  3. or download this
    Chromium:~ lexicon$ perl -l -MO=Deparse little2.pl 
    Unquoted string "unique" may clash with future reserved word at little
    +2.pl line 7.
    ...
        return grep((!$new{$_}++), @_);
    }
    little2.pl syntax OK
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-03-28 16:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found