use strict; use Encode; # I'm getting utf8 data use LWP::Simple; use Text::xSV; my $fh; my $csv_url = "http://someplace/that/sends/data.csv"; my $content = decode( 'utf8', get( $csv_url )); # HERE IS THE BLANK TO FILL IN: # associate $fh (as file handle) with $content (as file data) # then: my $csv = Text::xSV( fh => $fh ); # or something like that(?) $csv->read_header; while ( $csv->get_row ) { # and so on }