Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: A somewhat unexpected side effect... (stringy)

by tye (Sage)
on Nov 21, 2006 at 16:06 UTC ( [id://585288]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    $n++;
    print $n, $/;
    print $n-$p, $/;
    
  2. or download this
    010   # magic increment preserves leading zeros
    10    # treating it as a number doesn't give leading zeros
    ...
    # but the next increment is just numeric
    1.23456789012346e+069
    0     # and adding 1 to 1e69 does nothing
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-19 08:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found