in reply to using glob to get files
The following works:
#! /usr/bin/perl -w use strict; foreach (glob "$ENV{HOME}/DATA/*.db") { process_file ($_); }
Please note that calling process_file() with that leading ampersand has side-effects that really surprised me when I first learnt of them.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: using glob to get files
by Anomynous Monk (Scribe) on Mar 12, 2004 at 18:04 UTC | |
by pbeckingham (Parson) on Mar 12, 2004 at 18:17 UTC | |
by Anomynous Monk (Scribe) on Mar 12, 2004 at 18:43 UTC |