Dear Uri,
> from perlop:
>
> A (file)glob evaluates its (embedded) argument only when it
> is starting a new list. All values must be read before it
> will start over. [...]
>
> i call that documented :)
I am forced to agree. :-)
> KS> If I want to grok "~someone/some/stuff", glob() is my only
> KS> choice, because readdir() doesn't work for "~someone".
>
> use getpw* and look it up diectly. not hard at all. i recall some
> related examples in the perl cookbook trying to find your home dir.
It turns out that (getpwnam($login_name))[7] is the home
directory.
Thanks for everyone's feedback and suggestions.
peace, || Operation Shoe Fly: Send your shoes to Afghan children:
--{kr.pA} || http://tinyurl.com/6jnpf
--
We must believe in luck. For how else can we explain the success of those
we don't like? -- Jean Cocteau, author and painter (1889-1963)
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm