|
Linux's Witness Ministry
The Personal Web Pages of Chris X. Edwards
ex-print.pl |
#!/usr/bin/perl
#ex-print.pl
#output examples
#the standard way
print "This is a perl program\n";
#the more complete way
print ("This is an addition to an already fine program\n");
#printing with variables
$x=3; $y="line #";
print "This is ",$y,$x,"\n";
#standard format for functions
print ("This is ",$y,++$x,"\n");
| Return to Program Examples |
This page was created with only free, open-source, publicly licensed software.
This page was designed to be viewed with any browser on any system. |
| Chris X. Edwards ~ January 2003
|