in reply to Re: Learning Exercise
in thread Learning Exercise
Hmm...that makes a whole lot of sense. I do, however, have some questions:
1. I understand how if (/l/) { entry_list(); } works, but can you explain the premise behind /l/? Is that just how you list things in perl? Also...I knew there were cases when you could leave the & off when calling a sub, but how does that work?
2. || is equilivent to or?
3. Kind of like #2, does | just allow you to specify more than one option in an 'or' fashion?
4. What's the deal with subroutine cls?!
5. my $tmp = (); just sets $tmp to undef, right?
Alright, I believe that's all I have for now. Forgive the inexperience, please!
1. I understand how if (/l/) { entry_list(); } works, but can you explain the premise behind /l/? Is that just how you list things in perl? Also...I knew there were cases when you could leave the & off when calling a sub, but how does that work?
2. || is equilivent to or?
3. Kind of like #2, does | just allow you to specify more than one option in an 'or' fashion?
4. What's the deal with subroutine cls?!
5. my $tmp = (); just sets $tmp to undef, right?
Alright, I believe that's all I have for now. Forgive the inexperience, please!
In Section
Seekers of Perl Wisdom