|< 1 2 >| | 11 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
9
10
11
# Get fh
sub get_fh {
print "\nARRAY IS: ", join (' ', @_);
my $class = shift;
print "\nARRAY IS: ", join (' ', @_);
my $file = shift or croak "specify file!\n";
print "\nARRAY IS: ", join (' ', @_);
my $option = shift or my $option = "dummy";
$file = abs_path($file) unless ( $file eq "tmpfile" );
print "\n FILE IS: ", $file;
print "\n OPTION IS: ", $option;
$class->get_fh("/path/to/file", "write");
defined(\$_[0]) ? my $option = shift : my $option = "dummy";
1
2
3
4
5
6
7
8
9
10
11
12
13
DB<14> x $option
0 undef
DB<15> s
Fileclerk::get_fh(<laanger/path/to/File.pm>:65):
65: my $option = "dummy" unless ($option);
DB<15> x $option
0 'write'
DB<16> s
Fileclerk::get_fh(<laanger/path/to/File.pm>:66):
66: $file = abs_path($file) unless ( $file eq "tmpfile" );
DB<16> x $option
0 undef
DB<17>
my $option = shift or my $option = "dummy";
my $option = shift || "dummy";
my $option = "dummy" unless ($option);
my $option = "dummy" unless ($option);
defined(\$_[0]) ? my $option = shift : my $option = "dummy";
my $option = defined $_[0] ? shift : "dummy"
|< 1 2 >| | 11 Einträge, 2 Seiten |