our approach
|
new tutorials
|
contact us
Perl Basics In Pictures
Basics
Variables
Numbers
Subroutines
Logic & Loops
Files
Write a script that generates a whole random number between 1 and 450.
Then have the script advance that number by 1.
Save the script as
randinc.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
Generate a random number, plus one
to
practice.html
, and link that paragraph to
multiply.pl
.
View
practice.html
in the browser, then click the new link.
Its output should look like this:
<< BACK
NEXT >>