- or download this
# perl
BEGIN {
...
print "XYZ\n";
print "$shbstatus\n";
- or download this
XYZ
1
shb existed
- or download this
# perl
BEGIN {
my $shbstatus = (-f "C:/shb") ? 1 : 0;
}
- or download this
XYZ
Use of uninitialized value in concatenation (.) or string at begin.pl
+line 15.
shb was not identified
- or download this
# perl
use strict;
BEGIN {
$shbstatus = (-f "C:/shb") ? 1 : 0;
}
- or download this
Global symbol "$shbstatus" requires explicit package name at begin.pl
+line 4.
BEGIN not safe after errors--compilation aborted at begin.pl line 5.
shell returned 9
- or download this
# perl
BEGIN {
...
BEGIN {
$shbstatus = (-f "C:/shb") ? 1 : 0;
}
- or download this
XYZ
1
shb identified