Re: problem in returning the hash reference
- From: krahnj@xxxxxxxxx (John W . Krahn)
- Date: Wed, 31 Oct 2007 10:55:35 -0700
On Tuesday 30 October 2007 20:53, Praveena Vittal wrote:
Hi All,
Hello,
I have writen a library for a particular function.I could not
written the hash reference fron the subroutine "process_files".Can
any one please help in this regard?
You should *at* *least* test your code with warnings and strict enabled!
Testing this with warnings enabled produced these messages:
Scalar value @match[0] better written as $match[0] at your_program line
203.
Scalar value @match[0] better written as $match[0] at your_program line
209.
Unquoted string "false" may clash with future reserved word at
your_program line 308.
Unquoted string "true" may clash with future reserved word at
your_program line 313.
Name "Filter_Rule::test" used only once: possible typo at your_program
line 119.
Name "Filter_Rule::match_flt" used only once: possible typo at
your_program line 82.
Name "Filter_Rule::audit" used only once: possible typo at your_program
line 38.
Testing with strict also enabled produced a *lot* of messages.
So enable warnings and fix those problems and then enable strict and
fix those problems and *then* come back here if you still have problems.
John
--
use Perl;
program
fulfillment
.
- References:
- problem in returning the hash reference
- From: Praveena Vittal
- problem in returning the hash reference
- Prev by Date: Need help with substitution
- Next by Date: Re: Need help with substitution --DONE
- Previous by thread: Re: problem in returning the hash reference
- Next by thread: impatient DBI query
- Index(es):
Relevant Pages
|