| App-CCSV documentation | Contained in the App-CCSV distribution. |
App::CCSV::TieCSV.
Version 0.01
Helper class for App::CCSV.
There surely are ...
Please send bug reports or feature requests to Karlheinz Zoechling <kh at ibeatgarry dot com>.
Copyright 2008 Karlheinz Zoechling. All rights reserved.
This is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| App-CCSV documentation | Contained in the App-CCSV distribution. |
package TieCSV; use strict; require Tie::Handle; our @ISA = qw(Tie::Handle); our $VERSION = 0.01; my $csv; sub TIEHANDLE { my $class = shift; $csv = shift; my $fh = local *ARGV; bless \$fh, $class; } sub READLINE { my $self = shift; my $line = <$self>; if ($line) { my $status = $csv->parse($line); @::f = $csv->fields(); return $line; } return; } 1; __END__