Welcome to PERL Class
Saturdays 10am - 12pm in the Training Room
<<
LESSON 4
>>
2009.05.23
GETTING STARTED
- SSH into your account (username@domain.com)
- chomp review
look it up at perldoc -f chomp
-f stands for function, and chomp is the function
-history lecture of why chomp came into play
-old dos end of line and carrage return
-preOSX apple new line
-utilitys to convert from one to another
- the \$ keeps the $ to be a dollar sign only and not from being a command
- sleep tells the computer to wait the number of seconds you state (nothing smaller then a second will work)
-qw is quote words, which means put double quotation marks around each
word in the following ()
- until is the same as while but counts down instead of up
HOMEWORK:
Create a program that gives three choices that you can choose from and get the output, You chose 1 2 or 3.
Everything we have learned so far can be used.
example: wget physics-rules.com/Learning/ch4/joke.pl