Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have to check if $data is already inside @data before I push it in. What should I do? Thanks!!!my @array=split('',$_); my $data=$array[2]; push(@data, $data);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: check element if inside an array
by Abigail-II (Bishop) on Apr 24, 2003 at 15:04 UTC | |
|
Re: check element if inside an array
by broquaint (Abbot) on Apr 24, 2003 at 15:06 UTC | |
|
Re: check element if inside an array
by ctilmes (Vicar) on Apr 24, 2003 at 15:07 UTC |