#!/usr/bin/perl use strict; use warnings; my @words = qw( first second third% fourth% fifth); my @results = grep (/%$/, @words); print "Found:".join(",", @results)."\n" if (@results);
In reply to Re: using grep to find a word
by space_monk
in thread using grep to find a word
by shushant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |