Help for this page

Select Code to Download


  1. or download this
    my $numspells = ($doDeanStuff ? 1 : 0) 
                  + ($doSeamusStuff ? 1 : 0)
    ...
                  + ($doSeverusStuff ? 5 : 0); # it's really complicated
    
    print "Budget for this incantation is $numspells spells\n";
    
  2. or download this
    my $numspells = 0;
    $numspells += 1 if ($doDeanStuff);
    ...
    $numspells += 2 if ($doHarryStuff);  # Harry's stuff takes multiple sp
    +ells
    $numspells += 1 if ($doRonStuff);
    $numspells += 5 if ($doSeverusStuff); # it's really complicated
    
  3. or download this
    --
    @/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/;
    map{y/X_/\n /;print}map{pop@$_}@/for@/