|
Click Here for my main computer page... |
|
Click Here for my UNIX page... |
|
|
Under UNIX, Perl acts like a shell interpreter.
Most UNIX systems store Perl in /usr/bin/perl
In Perl, numbers and strings are the basic unit of conversation and are called scalars. Scalars that represent information that does not change over the life of the program are called constants or literals. Examples of literals are pi (3.14159265...), the name of the fourth planet from the sun (Mars), or the absolute limit of causal interation (299,792,458 metres per second [1,079,252,849 km/h]).In Perl, scalars that change are called scalar variables. You can change the contents of a variable because they merely act as as handles for the data they represent. Variable are usually given convenient and easy-to-remember names that allow you to easily refer to the data you are manipulating.
|
Perl Operators |
|
Simple bits of Code: |
Hello, world!
#!/usr/local/bin/perl print "Hello, world!\n";
|
Current Time
# file: time.pl $time = localtime; print "The time is now $time\n";
|
A Simple Calculator
while(<STDIN>) {
|
|
Perl References and Related Stuff: |
|
|
More Links:
|
|
Back to Roger J. Wendell's Home Page...
Abbey |
About |
Blog |
Contacting
Me |
Copyright |
Disclaimer |
Donate |
Guest
Book |
Home |
Site
Index |
Solutions |
Terms,
Conditions
and
Fair
Use
Copyright
© 1955 -