home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!decwrl!world!dsb
- From: dsb@world.std.com (David Boyce)
- Subject: Re: Filename expansion ("~user")
- Message-ID: <BtCF9y.21s@world.std.com>
- Keywords: ~user filename expansion
- Organization: The World Public Access UNIX, Brookline, MA
- References: <1992Aug20.153727.167@cbnews.cb.att.com>
- Distribution: usa
- Date: Fri, 21 Aug 1992 17:00:59 GMT
- Lines: 11
-
- In article <1992Aug20.153727.167@cbnews.cb.att.com> daleske@cbnews.cb.att.com (John D. Daleske) writes:
- >I'm relatively new to Perl and love it. I've read the recent notes in this
- >notes group and have not found how do one capability that I am trying to
- >use in a Perl script which is the ~user filename expansion.
-
- The "getpwent" function function should make this info available.
- You may not be able to use the ~user idiom, but you can write
- a little function called tilde(user) that uses getpwent and does
- the right thing.
- --
- David Boyce dsb@world.std.com 617-576-1540
-