http://qs321.pair.com?node_id=187048


in reply to Isn't glob annoying? (somehow)

as already pointed out, glob isn't strictly supposed to find existing files, but rather to do filenames expansion. however, you can do this to get the result you expect:

@t1 = grep(-e, glob('*1')); @t2 = grep(-e, glob('1')); @t3 = grep(-e, glob('file2')); @t4 = grep(-e, glob('*3'));

cheers,
Aldo

__END__ $_=q,just perl,,s, , another ,,s,$, hacker,,print;