Hi try this,
#!/usr/local/bin/perl use CGI; my $q = new CGI; my $search_word = $q->param('search_word'); my @parameters = qw(hello1 hello2 hello345 gube); @values = grep /^$search_word\d+/, @parameters; print "@values";
Always, mention the input clearly and ask the clear output in what output you need. And paste, the code what you have tried before and where you are struggle...
In reply to Re: searching parameter names
by gube
in thread searching parameter names
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |