Skip Menu |

This queue is for tickets about the Crypt-RSA CPAN distribution.

Report information
The Basics
Id: 37489
Status: resolved
Priority: 0/
Queue: Crypt-RSA

People
Owner: Nobody in particular
Requestors: HRAFNKELL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.96
Fixed in: (no value)



Subject: Precedence error in Crypt::RSA::Key::{Private,Public}::write
The write methods in those modules call open like this: open DISK, ">$params{Filename}" || croak "Can't open $params{Filename} for writing."; Unfortunately the precedence of the || operator is higher than the open function call, causing the open call to be interpreted like this: open (DISK, ">$params{Filename}" || croak "Can't open $params{Filename} for writing."); ... causing errors from open to get undetected. To fix this, either place the parentheses correctly or use the 'or' operator instead.
Thanks for pointing this out. Fixed in 1.98.