home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!uvaarpa!mmdf
- From: " (Paul Marquess)" <pmarquess@rosebud.bfsec.bt.co.uk>
- Subject: Strange behavior with -w and usersubs
- Message-ID: <1993Jan25.131348.19731@uvaarpa.Virginia.EDU>
- Sender: mmdf@uvaarpa.Virginia.EDU (Mail System)
- Reply-To: pmarquess@bfsec.bt.co.uk
- Organization: The Internet
- Date: Mon, 25 Jan 1993 13:13:48 GMT
- Lines: 46
-
- I have been playing with usersubs recently and have come across some
- strage behavior when using the -w command line option to check for
- errors.
-
- Take, for example, curseperl and the pager application which comes with
- the standard 4.035 distribution. If I type
-
- curseperl -wc pager
-
- I get this output
-
- Possible typo: "Def_term" at pager line 191.
- Possible typo: "ERR" at pager line 191.
- Possible typo: "My_term" at pager line 191.
- Possible typo: "OK" at pager line 191.
- Possible typo: "addch" at pager line 191.
- ...
- ... [62 lines deleted]
- ...
-
- Possible typo: "wclear" at pager line 191.
- Possible typo: "waddch" at pager line 191.
- pager syntax OK
-
-
- Perl seems to think that all of the usersubs and uservals which are not
- actually used in the script are potential typos. With so many spurious
- typos being displayed it is very difficult to spot the 'real' problems.
-
- I can understand why perl should thrown this up for a local sub, but is
- this the correct behavior when dealing with usersubs? Surely it is not
- a potential error to only use some of the usersub interface routines.
-
- Does anyone agree?
-
- Will this be fixed in Perl 5?
-
- Have I missed something fundamental :-) ?
-
-
- Paul Marquess Tel: +44 232 894-265
- BT Fax: +44 232 894-316
- Royston House e-mail: pmarquess@bfsec.bt.co.uk
- 34 Upper Queen Street
- BELFAST BT8 4QY
- UK
-