Dr Manhattan has asked for the wisdom of the Perl Monks concerning the following question:
Hi all
I have a word split up by letters into a array. Let's say my word is "catfood", so then 'c' would be $array[0], and 'd' would be $array[6]
I want to print the word 'food' from my array
I tried this-
my $end = $#array; print "$array[3..$end]\n";
and this
my $end = $#array; print "$array[3]..$array[$end]\n";
but it doesn't work. Any help would be appreciated!
|
|---|