简体   繁体   中英

Perl:Undefined subroutine &main

One of my non-developer friend asked my help about that issue. I am a windows developer, i don`t know anything about Perl, also script languages. I tried to search the issue but could not find a solution. Is there anyone can tell me what is the problem here and how to fix it.

Error after clicking the button:

Undefined subroutine &main::quote_javascript called at /usr/libexec/webmin/chooser.cgi line 192.

And the line 192 is :

$link = "<a href=\"\" onClick='fileclick(\"".&quote_javascript("$dir$f")."\", $isdir); return false'>";

The code that's actually triggering the error is of the form

... quote_javascript(...) ...

You are calling a sub named quote_javascript (in the current package, main ). There is no sub named quote_javascript (in the current package, main ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM