Perl Programming | ||
---|---|---|
List Operators | ||
my @animals = qw(dog cat fish parrot hamster); my $string = join(" and a ", @animals); print "I have a $string.\n"; my $sentence = "The quick brown fox..."; my @words = split(" ", $sentence); I have a dog and a cat and a fish and a parrot and a hamster. |
||
Previous | http://stuff.mit.edu/iap/perl/ | Next |