Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: help with form querying

by blueberryCoffee (Scribe)
on Feb 07, 2005 at 20:39 UTC ( #428807=note: print w/replies, xml ) Need Help??


in reply to help with form querying

use the glob function:
foreach my $file (glob("/directory/$searchString")) { # do something with filename; make a link, ect... }
$searchString would be any type of string you could type at a unix command line. So 12456* entered in a form and passed to this loop would return all files starting with 12456 in "directory".

Have fun,

Replies are listed 'Best First'.
Re^2: help with form querying
by calypso (Initiate) on Feb 11, 2005 at 13:38 UTC
    Is there like a glob module I need to add or use before the glob function works? cos right now its not.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://428807]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2023-01-29 16:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?