Skip Menu |

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

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

Owner: Nobody in particular
Requestors: clayton.chu [...]

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

Download (untitled) / with headers
text/plain 363b
Using fgrep in array context does not actually return an array; it creates a hash in the array ($array[0]) that contains the relevant information. Using the array in scalar context returns 1, but $array[0]->{count} should be what is actually returned. Using the array in array context returns the hash, but it should really return all the lines that were grepped.

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

Please report any issues with to