Angel has asked for the wisdom of the Perl Monks concerning the following question:
Trying to split a string on a user defined object scalar. This way depending on the delinter for the file you can parse the flat file into columns
#read in first line which should contain fieldnames $field_line = <FILE>; chomp $field_line; @field_list = split( /$self->{delimiter}/, $field_line);
I get the same affect as calling split with // as the first argument. Any ideas?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Splitting on Variable
by tye (Sage) on May 21, 2003 at 22:35 UTC | |
|
Re: Splitting on Variable
by halley (Prior) on May 21, 2003 at 20:40 UTC | |
|
Re: Splitting on Variable
by graff (Chancellor) on May 22, 2003 at 05:51 UTC |