RE: one question about an exercise in 'Learning Perl 4th Edition'

2011-02-11 Thread Alex Wang02
Hi, I just found the solution and reason in Chapter 8. Thanks & Regards, Alex Wang -Original Message- From: Alex Wang02 Sent: Saturday, February 12, 2011 12:42 PM To: beginners@perl.org Subject: one question about an exercise in 'Learning Perl 4th Edition' Hi, I hav

one question about an exercise in 'Learning Perl 4th Edition'

2011-02-11 Thread Alex Wang02
Hi, I have one question about the exercise No. 4 in chapter 7 . Here is the exercise : Make a program that prints each line with a word that is capitalized but not ALL capitalized. Does it match Fred but neither fred nor FRED? As suggested in the exercise, I created a small text file adhered be

RE: Re[2]: about return

2011-02-10 Thread Alex Wang02
Terry, Here is my understanding: You can try defined function to verify the return value in List context, you can find the return value is (undef) instead of undef once the condition is false. Because you are using @result=&yoursubName instead of $result=&yoursubName. Please correct me if I w