We use * notation in shell to match sets of files -- this is NOT same as regular expression since * is equivalent to (.*) except normally files beginning with . are not accessed with a simple glob
-
Presumably glob is "short" for globalize, not globular
|
@a = <file name with globbing>; returns a list (one per element of @a) of files matching globbed specification
-
For example @a = < *cps616*> returns all files in current directory with string cps616 somewhere in their name.
|
Variable interpolation is allowed in globbing, e.g.
|
$home = "~gcf"; # gcf's home directory is ~gcf
|
@a = <$home/*>; # returns all non initial . files in gcf's home directory
|