neutron has asked for the wisdom of the Perl Monks concerning the following question:
What does this all mean? What's with the "// 1"?my $Verbose = $ENV{VERBOSE} // 1; my $secret = int(1 + rand 100); print "Don't tell anyone, but the secret number is $secret.\n" if $Ver +bose;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Environment variables
by doom (Deacon) on Feb 09, 2009 at 01:24 UTC | |
|
Re: Environment variables
by kennethk (Abbot) on Feb 09, 2009 at 01:32 UTC | |
by GrandFather (Saint) on Feb 09, 2009 at 02:05 UTC | |
|
Re: Environment variables
by Anonymous Monk on Feb 09, 2009 at 01:22 UTC | |
|
Re: Environment variables
by locked_user sundialsvc4 (Abbot) on Feb 09, 2009 at 06:16 UTC | |
|
Re: Environment variables
by CountZero (Bishop) on Feb 09, 2009 at 05:52 UTC |