arrays.pl

A UNIX Command $cat arrays.pl # Simple array constructs. @fred = (“How”, “are”, “you”, “today?”); print “\@fred contains (@fred).\n”; $mike = $fred[1]; print “$mike $fred[3]\n”; # The array name in a scalar context gives the size. $fredsize = @fred; print ‘@fred has ‘, “$fredsize elements.\n”; # The $#name gives the max subscript (size less one). …

hello.pl —x Prints the message using two different delimeters.

A UNIX Command $cat hello.pl # Prints the message using two different delimeters. print “Hello, world!\n”; print qq=Did you say “Hello?”\n=; $perl hello.pl Hello, world! Did you say “Hello?” $ UNIX Explanation “print” is categorized under Input/Output Functions. Prints the message using two different delimeters. source : http://sandbox.mc.edu/~bennet/perl/leccode/index.html