Skip to content

Instantly share code, notes, and snippets.

@MattOates
Last active June 19, 2018 22:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save MattOates/718cea59c8b48acd02c5a74ce016b961 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use strict;
use warnings;
open my $file, '<', '../../example-input.csv';
while(my $record = <$file>) {
chomp $record;
my ($ElementId, $VehicleId, $Term, $Mileage, $Value) = split ',', $record;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment