Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: help with form querying

by blueberryCoffee (Scribe)
on Feb 07, 2005 at 20:39 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-19 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found