Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use warnings; use v5.16; my %docs; my @data; dbmopen %docs, 'mydocs', undef or die $!; open FH, 'C:/perlfunc.pod' or die $!; @data = <FH>; for (@data) { if (/^item\s+(\w+).*$/) { $docs{$1} = $.; } } dbmclose %docs;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error when using dbmopen.
by afoken (Chancellor) on May 05, 2013 at 05:05 UTC | |
by Anonymous Monk on May 05, 2013 at 06:18 UTC | |
by Anonymous Monk on May 05, 2013 at 09:18 UTC | |
by Anonymous Monk on May 05, 2013 at 09:30 UTC | |
|
Re: Error when using dbmopen.
by Anonymous Monk on May 05, 2013 at 09:20 UTC | |
by Anonymous Monk on May 05, 2013 at 10:58 UTC |