Skip Menu |

This queue is for tickets about the File-Grep CPAN distribution.

Report information
The Basics
Id: 26922
Status: new
Priority: 0/
Queue: File-Grep

Owner: Nobody in particular
Requestors: paul.d.lalli [...]

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

Subject: Documentation bug - void vs boolean context
Date: Thu, 03 May 2007 14:04:42 -0400
To: bug-File-Grep [...]
From: "Lalli, Paul D" <paul.d.lalli [...]>
The documentation for the module claims to give examples of using fgrep() in void, scalar, and list context. However, the first example is not void context. It is a boolean context (which is a subset of scalar). That example is given as: if ( fgrep { /$user/ } "/etc/passwd" ) { do_something(); } In this example, the return value of fgrep() is being used as the condition to the if(). That is a boolean context. Paul Lalli -- Paul Lalli Bank of America Specialized Delivery Systems 69 State Street Albany, NY 12207 Phone: 518-626-2232 Cel: 518-312-9362 Fax: 518-471-1880 Mail Stop: NY6-100-07-01 Because we value our relationship with you, we would like to offer you the opportunity to "opt out" of future e-mails. If at any time you would like to be removed from my e-mail list, please reply to this message indicating your request. This e-mail contains information intended only for the use of the individual or entity named above. If you are not the intended recipient, delete or discard this message. It has been prepared solely for information purposes from sources believed to be reliable, is not intended as specific advice or recommendation, and is not a solicitation, commitment or offer. Although this message and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus-free. We accept no responsibility for any loss or damage arising in any way from its use. Regular Internet e-mail is not secure. We ask that you do not send personal or company information of a sensitive or confidential nature through regular e-mail. For questions concerning your account relationships with Bank of America, you may contact us by phone, in person or via our secure "Contact Us" e-mail at We do provide encrypted Internet e-mail services for certain online products and services for registered clients. Bank of America, 100 N. Tryon Street, Charlotte, NC 28255-0001

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

Please report any issues with to