We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
loading of @labels is nasty, no warnings and stuff... yuck. try something more like:
my %labels = do { my $idx = 0; map { +($_ => $idx++) } split /,/, shift @lines; };
which will look like... %labels = ( field0 => 0, field1 => 1, field2 => 2);
then later use it like: $data[$labels{'field'}]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
loading of @labels is nasty, no warnings and stuff... yuck. try something more like:
Extract labels into hash of index positions :)
my %labels = do {
my $idx = 0;
map { +($_ => $idx++) }
split /,/,
shift @lines;
};
which will look like...
%labels = ( field0 => 0, field1 => 1, field2 => 2);
then later use it like:
$data[$labels{'field'}]
The text was updated successfully, but these errors were encountered: