佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 900|回复: 1

求助perl高手

[复制链接]
发表于 23-5-2006 04:03 PM | 显示全部楼层 |阅读模式
我写了一个CGI script 来connect mysql database, 但出现了这样的error:

Global symbol "$host" requires explicit package name at login.cgi line 42.
Global symbol "$database" requires explicit package name at login.cgi line 43.
Global symbol "$user" requires explicit package name at login.cgi line 44.
Global symbol "$db" requires explicit package name at login.cgi line 47.
Global symbol "$host" requires explicit package name at login.cgi line 47.
Global symbol "$database" requires explicit package name at login.cgi line 47.
Global symbol "$user" requires explicit package name at login.cgi line 47.
Global symbol "$db" requires explicit package name at login.cgi line 48.
Global symbol "$database" requires explicit package name at login.cgi line 48.
Global symbol "$pid" requires explicit package name at login.cgi line 50.
Global symbol "$db" requires explicit package name at login.cgi line 50.
Global symbol "%hash" requires explicit package name at login.cgi line 53.
Global symbol "$pid" requires explicit package name at login.cgi line 53.
Global symbol "$password_in_db" requires explicit package name at login.cgi line 55.
Global symbol "%hash" requires explicit package name at login.cgi line 55.
Global symbol "$password_in_db" requires explicit package name at login.cgi line 58.
Execution of login.cgi aborted due to compilation errors.

请问有人能告诉我是什么问题,非常谢谢你们的帮助!

[ 本帖最后由 nggs8411 于 23-5-2006 04:04 PM 编辑 ]
回复

使用道具 举报


ADVERTISEMENT

发表于 24-5-2006 01:56 PM | 显示全部楼层
你在declare variable时有没有加 "my"???
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 11-11-2024 10:20 PM , Processed in 0.135956 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表