Re: Totally lost - need a starting point



Helen wrote:
#! /usr/bin/perl

use strict;
use warnings;

print "Content-type: text/exp\n\n;

$rxvt;

What is this? First, use strict will complain that you didn't declare
it. Then use warnings will complain that you're uselessly using a
scalar variable in void context.


parse_form_data (select_advanced);

Here, you have an undeclared subroutien being called, followed by an
unquoted bareword. Both are errors.

$NAME = $select_advanced {'NAME'};

Here, you're using two undeclared variables, $NAME and
%select_advanced.

$NAME;

Another use of the undeclared variable, this time uselessly used in
void context.

else die;

Now you have an else without an if, and without braces. Neither is
allowed.


None of your code makes any sense. If you want real help, post real
code.

Paul Lalli

.



Relevant Pages

  • Re: Help with array
    ... use strict; ... use warnings; ... people probably start to complain about that first. ... Read the posting guidelines. ...
    (comp.lang.perl.misc)
  • Re: Perlcritic complains about assignment within conditional
    ... assignment in a conditional, but also warnings: ... And of course you should always have warnings enabled, ... ....followed by warnings and then strict. ... even if not where you'd think it ought to be to complain. ...
    (perl.beginners)
  • Re: Sharing variables between modules
    ... use strict; ... use warnings; ... # Note that this must also come *before* the use Foo line. ... package Foo; ...
    (comp.lang.perl.misc)
  • Re: Dynamic directory handles?
    ... > 1) You should always enable warnings (and strict) when ... > perldoc -q filehandle ... >> sub dircount { ... > use warnings; ...
    (comp.lang.perl.misc)
  • Re: Debug Help Please
    ... If you had enabled the warnings and strict pragmas then perl would have ... foreach my $logfile { ...
    (perl.beginners)