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

Re: Dualvar via table

by roboticus (Chancellor)
on Jan 17, 2020 at 18:16 UTC ( #11111540=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %directions = ( 1=>'NORTH', 2=>'SOUTH', 3=>'EAST', 4=>'WEST' );
    
    ...
        $dir = $dir2 + 0;
        print_dualvar($dir);
    }
    
  2. or download this
    use strict;
    no warnings;  # !!!
    ...
        print "House# across the street is ", $house_number+1, "\n";
        print "DEBUG: Original house number '$house_number'\n\n";
    }
    
  3. or download this
    $ perl t.pl
    House# across the street is 1142
    ...
    
    House# across the street is 120000000001
    DEBUG: Original house number '120000000000'
    
  4. or download this
    House# across the street is 1142
    DEBUG: Original house number '1141 Tennessee Avenue'
    
    House# across the street is 120000000001
    DEBUG: Original house number '12E10th Street'
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2020-10-29 08:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (269 votes). Check out past polls.

    Notices?