in reply to Should I learn Perl?
I don't know how to dimension an array in this language yetthat's one of the nice things about Perl, you don't :), you just use it.
# create array my @array = (1, 2, 3, 4); # push some elements on it - it grows automatically! push @array, 8; push @array, 9, 10, 11; # and print it out print "Here are the contents of the array: @array\n";
-- Hofmator
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Should I learn Perl?
by Anonymous Monk on Mar 10, 2003 at 06:37 UTC | |
by Hofmator (Curate) on Mar 10, 2003 at 09:15 UTC |