Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Incrementing "Infinity" bug

by kcott (Bishop)
on Mar 25, 2013 at 06:28 UTC ( #1025232=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -e '$a=inf; print ++$a,"\n"'
    ing
    ...
    $ perl -v
    
    This is perl 5, version 14, subversion 2 (v5.14.2) built for darwin-th
    +read-multi-2level
    
  2. or download this
    $ perl -Mwarnings -e '$a=inf; print ++$a,"\n"'
    Unquoted string "inf" may clash with future reserved word at -e line 1
    +.
    ...
    $ perl -Mstrict -e '$a=inf; print ++$a,"\n"'
    Bareword "inf" not allowed while "strict subs" in use at -e line 1.
    Execution of -e aborted due to compilation errors.
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2019-11-19 23:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (96 votes). Check out past polls.

    Notices?