our approach
|
new tutorials
|
contact us
Perl Basics In Pictures
Basics
Variables
Numbers
Subroutines
Logic & Loops
Files
Write a script that creates a list (array) of presidents:
James Buchanan
George Washington
Millard Fillmore
...Prints the text
“This was the Revolution’s indispensable man:”
...Then prints the second name in the list.
Save the script as
presidents.pl
in the
PERL PRACTICE
folder on your computer.
Upload it into the
practice
directory in your Web site, then change its permissions so that anyone can execute it.
Add the paragraph
“The indispensable man”
to
practice.html
, and link that paragraph to
presidents.pl
.
View
practice.html
in the browser, then click the new link.
Its output should look like this:
<< BACK
NEXT >>