123 results found for perl //=
$name = "" unless defined $name; if($name ne '') { # do something with $name } In Perl 5.10, this can be shortened to `$name //= "";` which is exactly
http://stackoverflow.com/question...able-is-defined-and-contains-a-non
$ENV{NOT_DEFINED}' (don't do #4). Since this is Perl, there are several more ways to do it. In Perl <= v5.8, you have to use || and ||= instead of // and //= , which
http://stackoverflow.com/question...out-use-of-uninitialized-value-env
which doesn't sound like what you want. Using $args{bar} //= 99; if you're using perl 5.10 or later would do what you want, though. Based on your comment
http://stackoverflow.com/question...if-an-undefined-value-is-passed-in
What does `$hash{$key} |= {}` do in Perl? What does `$hash{$key} |= {}` do in Perl? I was wrestling with some Perl that uses hash references. In the
http://stackoverflow.com/questions/154900/what-does-hashkey-do-in-perl
bash operator for logical defined-or bash operator for logical defined-or Is there an equivalent Bash operator to Perl's logical defined-or?
http://stackoverflow.com/question...sh-operator-for-logical-defined-or
to defined $a ? $a : $b and the statement $c //= $d; can now be used instead of $c = $d unless defined $c; Perl doesn't offer a way to check whether or
http://stackoverflow.com/question...alar-variable-has-been-initialized
rather than having to list them all in order (and potentially having to list ones I don't actually want). Tags: ruby idioms Perl now has the //= syntax to
http://stackoverflow.com/question...alues-for-optional-parameters-in-r
Misspelling variable names (i.e., use strict , again) Meta-Answers The perltrap manpage Perl::Critic See Also: ASP.NET - Common gotchas Tags: perl
http://stackoverflow.com/questions/166653/perl-common-gotchas
Perl 6) Atomic Blocks Concurrency Defined-or ( // ) operator Tags: perl polls features perl6 Perl 6 is taking more time than Windows Vista did!!! :( I
http://stackoverflow.com/question...l-6-are-you-the-most-excited-about
How to avoid extra information to be printed How to avoid extra information to be printed In my perl code I have used the following line :
http://stackoverflow.com/question...id-extra-information-to-be-printed