Skip Menu |
 

This queue is for tickets about the Hardware-Vhdl-Lexer CPAN distribution.

Report information
The Basics
Id: 41847
Status: new
Priority: 0/
Queue: Hardware-Vhdl-Lexer

People
Owner: Nobody in particular
Requestors: cpan [...] zoffix.com
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Download (untitled) / with headers
text/plain 470b
The code in the SYNOPSIS is "broken" with regard that this: open $fh, '<', 'device_behav.vhd' || die $! Will *not* die on open() errors. You need to use 'or' instead of '||' or put parentheses around open()'s args: open($fh, '<', 'device_behav.vhd') || die $! || and 'or' have different precendence and the way you got it here it parses as: open $fh, '<', ( 'device_behav.vhd' || die $! ); thus never dies and never checks for open errors. Thanks, Zoffix Znet


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.