Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Perl oddities

by trammell (Priest)
on Mar 01, 2005 at 17:41 UTC ( #435538=note: print w/ replies, xml ) Need Help??


in reply to Perl oddities

Unary - on strings always struck me as weird:

my $foo = '-bar'; print $foo; print -$foo;


Comment on Re: Perl oddities
Download Code
Replies are listed 'Best First'.
Re^2: Perl oddities
by TimToady (Parson) on Mar 01, 2005 at 21:20 UTC
    Yeah, I'm not sure anyone has ever used that feature. It snuck in there because certain linguists love to write their linguistic booleans as +feature and -feature, plus there was some resonance with Tk's -foo syntax. But we're probably breaking that too in favor of something more natively Perlish.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2015-07-29 13:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls