Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
is this: $q = CGI->new(\&hook [,$data [,$use_tempfile]]); valid Perl?
Yes! Although it is not literal perl. The first argument "\&hook" is a reference to the subroutine "hook". The second argument is optional, and thus enclosed in [ and ] characters, and similarly the last argument is optional. So you could call it in three ways:
Under Unix-like systems there is a convention that optional arguments are enclosed in "[" and "]" characters. For a simple example of that try readng "man ls" which has the following output:
In reply to Re: Web Browser File Upload Progress Bar in Perl w/AJAX
by skx
|
|