|
||||||
| Perl Discussion for the PERL language - Practical Extraction and Reporting Language, is a programming language often used for creating CGI programs. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
What happens if something besides 1 or 2 is entered as the option?
drop the -w switch from the shebang line. The warnings pragma is better: use warnings; Don't use parenthesis around print commands: print ("You chose option 1. Enter your value below \n\n"); should be: print "You chose option 1. Enter your value below \n\n"; print is not a function, using parenthesis can sometimes cause problems. |
|
|||
|
The short answer is you should always use the "strict" pragma and declare all your lexical variables with "my". The use of "strict" is a pretty lengthy topic, here is an article that discusses it more in depth:
perl.com: Beginners Intro to Perl - Part 6 The article is a little old but seems to still be relevant. |
|
|||
|
Failed! You gotta learn to study harder, my friend.
__________________
Make Money Online |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| can someone tell me how to study c# better? | yulin11 | C# Programming | 6 | 02-24-2008 11:53 PM |
| Perl text parse help (noob) | dfp | Perl | 4 | 11-23-2007 01:57 PM |
| Looking for expert perl freelancer | hhheng | Request Services (Paid) | 1 | 11-12-2007 04:53 PM |
| Perl is Dead. Long live Perl. | Kernel | Programming News | 3 | 08-10-2007 10:49 AM |
| Perl Tutorial Course for Windows | priorityone | Perl | 22 | 02-11-2007 12:57 AM |