Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Think about Loose Coupling
 
PerlMonks  

Re: searching parameter names

by gube (Parson)
on Mar 24, 2006 at 07:30 UTC ( [id://539010]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to searching parameter names

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...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://539010]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.