Another REALLY basic question!

F

fred

Hi All

What does -> mean in perl scripting.

eg.

my $f_username=$query->param('req_username');
my $f_password=$query->param('req_password');

Thanks

Fred
 
B

bob

in lamens terms for the example reference it means

"in" query "is" param('req_username')
 
Q

QB

in lamens terms for the example reference it means

"in" query "is" param('req_username')

In lamentable terms, maybe.

As the previous responder said, it is either a dereference, or a method
call.

In lay-man's terms, $query->param('req_username') asks the object $query
(of class CGI, no doubt) to return the value of its 'req_username'
parameter, by calling the method param.

Since CGI::param returns undef (in scalar context) if its argument was
not present in the query string, it can also be used as an existence
tester in a Boolean expression.

QB

PS. Please quote context and include attribution(s) when replying to a post.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top