Re: problem in returning the hash reference



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
.



Relevant Pages

  • Re: Non-deprecated way to capture array length
    ... Unquoted string "a" may clash with future reserved word at -e line 2. ...
    (perl.beginners)
  • Re: String
    ... Unquoted string "strftime" may clash with future reserved word ...
    (comp.lang.perl.misc)
  • Re: Name help with Forstmark
    ... David Friedman wrote: ... There is a simple fix, ... And that probably would also avoid the clash between the new version and ...
    (rec.arts.sf.composition)
  • Re: Outlook Express prints tiny fonts
    ... Many thanks, tried it, restarted but didnt' help either. ... Obviously there is some clash somewhere, ... Is there a way to fix this through the registry perhaps? ... Dion ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)