HTH,#!/usr/bin/perl use strict; use warnings; my $input = $ARGV[0] || 'bar'; my @repo = qw(foo baz bar boo); my $i; map{ print $i if /$input/; $i++ } @repo;
In reply to Re: Finding index of an entry in an Array
by poolpi
in thread Finding index of an entry in an Array
by monkfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |