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

StommePoes's scratchpad

by StommePoes (Scribe)
on May 18, 2009 at 08:03 UTC ( #764595=scratchpad: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $rocks[0] = 'bedrock';      #One element...
    $rocks[1] = 'slate';        #another...
    $rocks[2] = 'lava';         #and another...
    $rocks[3] = 'crushed rock'; #and another...
    $rocks[99] = 'schist';      #now there are 95 undef elements
    
  2. or download this
    $end = $#rocks;                #99, which is the last element's index
    $number_of_rocks = $end + 1    #okay, but you'll see a better way late
    +r
    $rocks[$#rocks] = 'hard rock'  #the last rock
    
  3. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    ...
    } else {
      print "The result is \n", $string x $int,"\n";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
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: (21)
As of 2014-07-29 15:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (219 votes), past polls