Globbing





One common chore for computer administrators is the removal of backup f~ You can use the globbing technique with the unlink() function to perform chore,
unlink(glob("'*.bak"));
The file specification, *.bak, when evaluated returns a list of files that mat&' specification. An asterisk means zero or more of any character will be mat&So this unlink() call will delete all files with a BAK extension.
You can use the following: To get a list of all files that start with the letter f.
@a = glob("f*.*");
Domain Name Search
|