Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    General Discussion    Chit - Chat  ›  understanding one Perl code
Users Browsing Forum
No Members and 1 Guests

understanding one Perl code  This thread currently has 404 views. Print
1 Pages 1 Recommend Thread
drfragment
August 15, 2007, 5:58pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 64
Posts Per Day: 0.08
Time Online: 20 hours 57 minutes
Hello.

There's a part of code ( http://technotrade.com/password/password.txt ) here that I'm having trouble understanding.

Code

 $password =  $input{'password'};
 $function = $input{'function'};

 .
 .
 .

 $input{$name} = $value;


Would someone be so kind to explain this to me?

Thanks.
Logged Offline
Private Message Private message
drfragment
August 18, 2007, 2:34pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 64
Posts Per Day: 0.08
Time Online: 20 hours 57 minutes
No one knows?  
Logged Offline
Private Message Private message Reply: 1 - 2
Justin
August 18, 2007, 9:12pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,075
Gender: Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
Haha, you stripped the code that was important in your little snippet.

Notice how the sub parse_form() is called, when that is called, it assigns the data in the $ENV{QUERY_STRING} hash into a value it can read.  E-Blah does something almost identical to that code, it's in Blah.pl; look at the sub here: UFS.


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 2 - 2
1 Pages 1 Recommend Thread
Print

E-Blah Community    General Discussion    Chit - Chat  ›  understanding one Perl code