[EMAIL PROTECTED] writes:
> You can use the globbing (shell pattern matching) magic of the <>
> operator to get the names of the files. Try this to see how it works.
NB: Did you notice that "glob" is sometimes spelled "<>"? It's
easy to miss. "<>" in the following example is glob, *not*
(did I mention *not*) the diamond input operator.
> while (<sn.????>) {
> print "$_\n";
> }
Since <> is used so often in a while loop to mean the
diamond operator, I prefer to spell out "glob" as follows.
while (glob "sn.????") {
print "$_\n";
}
Just a *preference*. They're both *right*.
--
Michael R. Wolf
All mammals learn by playing!
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]