Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: 2 newby questions

by SuicideJunkie (Vicar)
on Jun 14, 2012 at 13:47 UTC ( #976212=note: print w/ replies, xml ) Need Help??


in reply to Re^2: 2 newby questions
in thread 2 newby questions

The effects do vary in some cases, since ++ is smarter than it looks.

use strict; use warnings; my $index = 'AH'; $index++; print "++ gives $index\n"; $index += 1; print "+= gives $index\n";

Results in:

++ gives AI Argument "AI" isn't numeric in addition (+) at test.pl line 7. += gives 1


Comment on Re^3: 2 newby questions
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2015-08-03 09:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (29 votes), past polls