Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: open input files onceby haukex (Archbishop) |
on Jul 14, 2020 at 20:11 UTC ( [id://11119321]=note: print w/replies, xml ) | Need Help?? |
What is // doing in the above code? // in this case is the Logical Defined Or (as opposed to the empty regular expression, for example in "$foo =~ //;"). The expression $data{$key}{$file} // 0 is the same as defined($data{$key}{$file}) ? $data{$key}{$file} : 0
In Section
Seekers of Perl Wisdom
|
|