use strict; use warnings; $/="--------------------"; my %h = (); open IN, "<", "c:/pm217.txt" or die $!; while (<IN>) { if ( /ASCII=(.+?)\nCharacter=(.+?)\n/ms ) { $h{$2} = $1; } } close IN;
In reply to Re: Reading into a hash from regex
by holli
in thread Reading into a hash from regex
by songahji
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |