Trying to create a program that is based off of an example in 'Learning Perl', (page 275). I would be taking multiple lines from a file and selecting certain fields, splitting on the ':'. I'm sort of stuck here, any input would be greatly appreciated. Below is the beginning of my code. TIA The Catfish
my $line = <>; while (defined($line = <>)) { chomp($line); my @items = split /:/ $line; # print "Customer Data: $line\n"; }
In reply to Using Split function by catfish1116
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |