Jump to content

Print debugging statement: Difference between revisions

m
→‎{{header|Perl 6}}: remove unnecessary parenthesis & whitespace
(→‎{{header|Perl 6}}: Add a Perl 6 example)
m (→‎{{header|Perl 6}}: remove unnecessary parenthesis & whitespace)
Line 148:
## Testing / demonstration
 
# helper subs #line 22
sub alpha ($a) { #line 23
pdb ('a =>', $a + 3); #line 24
pdb 'string'; #line 25
beta(7); #line 26
} #line 27
sub beta ($b) { pdb $b } #line 28
sub gamma ($c) { beta( $c) } #line 29
sub delta ($d) { gamma ($d) } #line 30
#line 31
my $a = 10; #line 32
pdb (.VAR.name, $_) with $a; #line 33
alpha($a); #line 34
delta("Δ"); #line 35
.&beta for ^3; #line 36</lang>
 
{{out}}
10,333

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.