Skip Menu | will be shut down on March 1st, 2021.

This queue is for tickets about the Spreadsheet-ParseExcel-Simple CPAN distribution.

Report information
The Basics
Id: 9174
Status: new
Priority: 0/
Queue: Spreadsheet-ParseExcel-Simple

Owner: Nobody in particular
Requestors: lodin [...]

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

From: "Johan Lodin" <lodin [...]>
To: <kasei [...]>
Subject: Spreadsheet::ParseExcel::Simple interface suggestion
Date: Tue, 12 Oct 2004 01:04:41 +0200
Download (untitled) / with headers
text/plain 591b
Hi. I just installed Spreadsheet::ParseExcel::Simple and thought about adding a behaviour to &next_row. As it is now, the documentation doesn't specify any behaviour for scalar context, so I figured it could return the equivalent of "$sheet->has_data ? [ $sheet->next_row ] : undef" in scalar context. The benefit of this would be that while ($sheet->has_data) { my @data = $sheet->next_row; ... } can be written while (my $data = $sheet->next_row) { ... } and thus making a useful abstraction. What do you think of this? Regards, Johan Lodin

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

Please report any issues with to