in reply to Perl Regular Expressions
best regards, neniro#!/usr/bin/perl use strict; use warnings; use Data::Dumper; my %hash; my @array; while (<DATA>) { chomp; push @array, split "- " }; %hash = @array; print Dumper(\%hash); __DATA__ ABD - some text ACDB- some more text WD - more text - which spills onto the next line SD - another line
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Perl Regular Expressions
by CountZero (Bishop) on Mar 22, 2004 at 22:34 UTC |