sloppyhack
Technical User
Oh mighty perl scriptors,
Probably a simple task but I'm new to Perl (it rocks!) I am editing/validating tab delimited text with similar data in varying columns throughout the file and I need to be able to define which column data exist based on header rows. I can split the rows into arrays but then I need to somehow get the element number from an array to determine which column the data is in to apply the rest of the expressions. Example:
@array = qw(Color Size Height Length);
$array[how do I get this] = "Height";
I'm sure there is a way to do this as it seems like a common task. Any help would be greatly appreciated!!!
sloppyhack
Probably a simple task but I'm new to Perl (it rocks!) I am editing/validating tab delimited text with similar data in varying columns throughout the file and I need to be able to define which column data exist based on header rows. I can split the rows into arrays but then I need to somehow get the element number from an array to determine which column the data is in to apply the rest of the expressions. Example:
@array = qw(Color Size Height Length);
$array[how do I get this] = "Height";
I'm sure there is a way to do this as it seems like a common task. Any help would be greatly appreciated!!!
sloppyhack