RCH has asked for the wisdom of the Perl Monks concerning the following question:
Dear Perl Monks
I've just wasted a lot of time debugging a Perl script.
Error turned out to be here (simplified)
my %hash = ( 'accents' => 'utf-8', 'accounting' => 'money', 'bank' => 'money'. 'ing' => 'money', 'perls' => 'perl', );
Question - how to detect that mistake 1
and throw an error message programatically?
RCH
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to validate %hash = ( 'a' => 'b', ...);
by johngg (Canon) on Sep 11, 2016 at 15:33 UTC | |
by RCH (Sexton) on Sep 12, 2016 at 04:20 UTC | |
|
Re: How to validate %hash = ( 'a' => 'b', ...);
by AnomalousMonk (Archbishop) on Sep 11, 2016 at 16:28 UTC | |
|
Re: How to validate %hash = ( 'a' => 'b', ...);
by pryrt (Abbot) on Sep 11, 2016 at 15:30 UTC | |
|
Re: How to validate %hash = ( 'a' => 'b', ...);
by LanX (Saint) on Sep 12, 2016 at 00:44 UTC | |
|
Re: How to validate %hash = ( 'a' => 'b', ...);
by BrowserUk (Patriarch) on Sep 11, 2016 at 15:36 UTC | |
|
Re: How to validate %hash = ( 'a' => 'b', ...);
by LanX (Saint) on Sep 12, 2016 at 00:55 UTC | |
by Anonymous Monk on Sep 12, 2016 at 07:29 UTC | |
by LanX (Saint) on Sep 12, 2016 at 10:08 UTC |