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