Re: about glob

2010-12-16 Thread Rob Dixon
On 16/12/2010 13:57, practicalperl wrote: On Thu, Dec 16, 2010 at 9:47 PM, C.DeRykus wrote: There weren't any matches with files and no wildcards in the glob pattern so the pattern itself is returned *. If there had been a wildcard in the pattern, then nothing would have been returned. Th

Re: about glob

2010-12-16 Thread practicalperl
On Thu, Dec 16, 2010 at 9:47 PM, C.DeRykus wrote: > There weren't any  matches with files and no wildcards > in the glob pattern so the pattern itself is returned *.  If > there had been a wildcard in the pattern, then nothing > would have been returned. > Thanks. But still being confused about

Re: about glob

2010-12-16 Thread C.DeRykus
On Dec 16, 2:56 am, practicalp...@gmail.com (practicalperl) wrote: > This has been confused me: > > [an...@localhost tmp]$ ls > [an...@localhost tmp]$ perl -le'print glob("foo.3")' > foo.3 > > there is nothing in the tmp directory. > but why glob("foo.3") returns the string? > > $ perl -v > > This