#!/usr/bin/perl -w use strict; my $author = 'grep'; my @admin_users = qw/test that grep out/; if ( grep { /^$author$/i } @admin_users ) { print "blah\n"; } else { print "uber_blah\n"; }
|
grep> cd pub grep> more beer |
In reply to Re: Re: Is for the wrong choice here?
by grep
in thread Is 'for' the wrong choice here?
by jerrygarciuh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |