Help for this page

Select Code to Download


  1. or download this
    use Smart::Comments;    # Enable special comments for debugging
    
    ...
    for (0..$max) {         ### for2 |===[%]    |
        sleep(1);
    };
    
  2. or download this
    1:    say "var: $var";     # DEBUG
    2:    say '$var', $var;    # DEBUG
    2:    say $var;            # DEBUG
    3:    say $var;
    
  3. or download this
    my $tmp    = scalar @foobar;
    ### Elements count: $tmp
    
  4. or download this
    use Smart::Comments '###', '####';
    ###   $foo          # $foo will be dumped
    ####  $foo          # $foo will be dumped
    ##### $foo          # nothing happens
    
  5. or download this
    use Smart::Comments;
    ###   $foo          # $foo will be dumped
    no Smart::Comments;
    ###   $foo          # nothing happens