Re: [interchange] Fix potential "use of uninitialized value" if called during startup

Peter <[email protected]>
Newsgroups gmane.comp.web.interchange.users
Message-ID <[email protected]>
On 23/06/17 19:20, Stefan Hornburg (Racke) wrote:
> 
> Hallo David,
> 
> thanks very much on your effort to clean up Interchange!
> 
> I think the // operator isn't present in older Perls.
> 
>> +		$pat = $Global::AllowedFileRegex->{$Vend::Cat // ''}

Good catch, yeah, it needs to be changed to:
$pat = $Global::AllowedFileRegex->{defined $Vend::Cat ? $Vend::Cat : ''}


Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.