Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by Lexicon (Chaplain)
on Jul 10, 2005 at 11:20 UTC ( #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
Node Status?
node history
Node Type: note [id://473752]
help
Chatterbox?
[ww]: er -- senior cognitive deficiency: ((22+(22*2))
[ww]: (but pls don't s/senior/senile/ ... not yet
[karlgoethebier]: A bit more audience now: The Impact of Information Sources on Code Security Very interesting IMHO...
[karlgoethebier]: ..it's about copy & paste ;-)
[ww]: Wonder what IEEE would have thought w/survey based on PM/perl
[ww]: s/thought/found/
[erix]: that title is a broken* sentence, no? But maybe that's deliberate
[karlgoethebier]: ww:My first thought, to be honest...
[erix]: and those authors' names don't look like native english speakers. Then again, neither am I :)

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2017-09-25 14:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (280 votes). Check out past polls.

    Notices?