I think this question is best posed with an example:
Here's a sample array:
There could be more, less, or no 'xx...', and the length of the array varies. Given that, how would I reference the last line in the array that does NOT contain 'xx...'?
I know it looks like homework, but I assure you it has a practical application. Thanks-
Because a thing seems difficult for you, do not think it impossible for anyone to accomplish.
Marcus Aurelius
Here's a sample array:
Code:
@array=qw(
11111
22222
33333
xxmeta
xxdata
);
I know it looks like homework, but I assure you it has a practical application. Thanks-
Because a thing seems difficult for you, do not think it impossible for anyone to accomplish.
Marcus Aurelius