[Date Prev][Date Next][Thread Prev][Thread Next]
[Search]
[Date Index]
[Thread Index]
[MacPerl] Grep based on user input?
- To: MacPerl <macperl@macperl.org>
- Subject: [MacPerl] Grep based on user input?
- From: Matthew Fischer <mfischer@fishmancom.com>
- Date: Tue, 19 Dec 2000 23:24:16 -0500
- Delivered-To: irons-bumppo:net-mpmacperl@bumppo.net
- In-Reply-To: <20001217132418.B191771@linguist.thayer.dartmouth.edu>
How can you dynamically build a grep pattern based on user input from a form?
i.e.: (I know this doesn't work):
if ($input{'month'} ne "") {
@allfiles = grep(/$input{'month'}/,@allfiles);
}
# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org