Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: problem with explicit package name

by Ven'Tatsu (Deacon)
on Aug 19, 2005 at 16:25 UTC ( #485195=note: print w/replies, xml ) Need Help??

in reply to problem with explicit package name

I think the real cause of the errors is this:
syntax error at /opt2/griffass/httpd/cgi-bin/tapeAndLabelLogin.cgi lin +e 539, near "my ($name, $password) = split /:" (Might be a runaway multi-line // string starting on line 488)
Check like 488 for a syntax error like an extra or mising /, or something similar. If it's not there try looking a few lines before or after that.
The gist of the error is that there is a / that is being interpreted as starting a string (or posibly a regular expression) and so every thing between that and the first / on line 539 is being treated as contained in a string. All the my declarations are then not being interpreted as code, but when perl sees the variable it tries to interpret it and does not find that it's been declaried and throws a strict error. Basicly perl sees something like this
print "some text\n; my $foo; ";
it interprets it as
print "some text\n;\nmy " . $foo . ";\n";
and complains that $foo is not declaired.

perl however then doesn't find another missing string delemiter and tries to be as helpful as posibal by telling you where it had the error parsing and where it thinks the error originated.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://485195]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2022-08-08 03:51 GMT
Find Nodes?
    Voting Booth?

    No recent polls found