Help for this page

Select Code to Download


  1. or download this
    sub debug {
      warn join '', map $_ // '<undef>', @_, "\n";
    ...
    # and then...
    debug "x=", $x, " y=", $y;
    
  2. or download this
    sub debugf {
      my $fmt = shift;
    ...
    }
    
    debugf "x=%s y=%s", $x, $y; # <-- always using %s!