Leser: 2
10 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
use strict;
use warnings;
my $debug = 1;
use if $debug, "Data::Dumper";
my $var = "Hallo";
print Dumper \$var;
QuoteName "main::Dumper" used only once: possible typo at C:/Dokumente und Einstellungen/behe3087/workspace_general/General/hello.pl line 24.
print() on unopened filehandle Dumper at C:/Dokumente und Einstellungen/behe3087/workspace_general/General/hello.pl line 24.
1
2
3
4
5
6
7
use strict;
use warnings;
use if 1, "Data::Dumper";
my $var = "Hallo";
print Dumper \$var;
1
2
3
4
5
6
7
8
9
10
11
12
13
use strict;
use warnings;
BEGIN {
$main::debug = defined $ARGV[0] ? $ARGV[0] : 0;
}
use if $main::debug, "Data::Dumper";
my $ref = {foo=>'bar'};
print Dumper($ref)
if $main::debug;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use strict;
use warnings;
my $debug;
BEGIN {
$debug = 0;
}
use if $debug, "Data::Dumper";
my $var = "Hallo";
if($debug) {
no warnings;
print Dumper \$var;
} else {
print $var;
}
10 Einträge, 1 Seite |