in reply to Re: Re: Re: Re: Re: A Perl aptitude test
in thread A Perl aptitude test
As a consequence of your reply, I learned that strict was lexically scoped, as well as the syntax for how to release its iron grip, as well as the idea that one could reduce only pertinent portion of its iron grip and the synxtax thereto, resulting in this snippet which was no longer relegated to its "quarantine module":
# If it's our last lock, release it. if (!$lckcnt) { # It's our last lock. Release the lock token file. my $lckfnm = &_getLockFilename($filfnm); { # Must disable warnings and strict for this no warnings; no strict; close $Lckhan{$KEY_LCKHAN}{$filfnm}; } }
So, as many times before, thanks for having taken the time to write this -- OMG -- ten years ago.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: A Perl aptitude test
by BrowserUk (Patriarch) on Jul 16, 2013 at 18:46 UTC | |
by marinersk (Priest) on Jul 16, 2013 at 20:04 UTC |