Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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?
[Corion]: But a quick Google search turns up this page, which seems to suggest that it should be packaged
[Discipulus]: iirc active perl has repositories only for last 2 o 3 major release of perl Mj1234. I strongly suggest portable version of strawberry perl and use cpan client to install modules
[choroba]: Also, who needs GDB when there's hdb?
[Discipulus]: in this ubuntu i'm not able to find resource monitor, graphical mount program.. just office and amazon are exposed!

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2016-12-07 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (125 votes). Check out past polls.