idiomatics v. Use English - was Re: ascertain current username

2002-08-16 Thread drieux
On Friday, August 16, 2002, at 08:01 , George Schlossnagle wrote: > drieux wrote: >> I have my nagging doubts about >> >> use English; >> >> when coding in perl... > > What are your nagging doubts in particular? [..] p0: besides the fact that it just is a fun gag to pull step ba

Re: ascertain current username

2002-08-16 Thread George Schlossnagle
drieux wrote: > > > I have my nagging doubts about > > use English; > > when coding in perl... What are your nagging doubts in particular? I find use English variable names to be far less magical and far more intuitive than the hsort versions. I realize that goes against the whole line

Re: ascertain current username

2002-08-16 Thread drieux
On Friday, August 16, 2002, at 01:22 , Rus Foster wrote: > On Fri, 16 Aug 2002 [EMAIL PROTECTED] wrote: > >> Hello, >> does anybody know a possibility how to ascertain the current User (User >> Id, >> Username) ? [..] > use English; > print $UID; > print $GID; > perldoc perlvar will lead you

Re: ascertain current username

2002-08-16 Thread Jeff 'japhy' Pinyan
On Aug 16, Rus Foster said: >On Fri, 16 Aug 2002 [EMAIL PROTECTED] wrote: > >> Hello, >> does anybody know a possibility how to ascertain the current User (User Id, >> Username) ? >> I thougt of using a module but couldn't find one. > >Have you tired parsing the output from the commands "id -h" a

Re: ascertain current username

2002-08-16 Thread John W. Krahn
Stefan Haberer wrote: > > Hello, Hello, > does anybody know a possibility how to ascertain the current User (User Id, > Username) ? I thougt of using a module but couldn't find one. my $username = getpwuid $<; perldoc perlvar perldoc -f getpwuid John -- use Perl; program fulfillment --

RE: ascertain current username

2002-08-16 Thread Egleton, Gary
ECTED] Cc: [EMAIL PROTECTED] Subject: Re: ascertain current username On Fri, 16 Aug 2002 [EMAIL PROTECTED] wrote: > Hello, > does anybody know a possibility how to ascertain the current User (User Id, > Username) ? > I thougt of using a module but couldn't find one. Have you tired parsin

Re: ascertain current username

2002-08-16 Thread Rus Foster
On Fri, 16 Aug 2002 [EMAIL PROTECTED] wrote: > Hello, > does anybody know a possibility how to ascertain the current User (User Id, > Username) ? > I thougt of using a module but couldn't find one. > > > greetings > Stefan > Or following up on my own post (which is bad) just found out you could

Re: ascertain current username

2002-08-16 Thread Rus Foster
On Fri, 16 Aug 2002 [EMAIL PROTECTED] wrote: > Hello, > does anybody know a possibility how to ascertain the current User (User Id, > Username) ? > I thougt of using a module but couldn't find one. Have you tired parsing the output from the commands "id -h" and "id -u"? Rgds Rus -- http://www.

RE: ascertain current username

2002-08-16 Thread Dharmendra Rai
hi, use system('users') on unix systems to get the name of all users currently logged on that machine. u can also use system('whoami') to know from whose login the script is being executed (i.e. u urself). - Get a bigger mailbox -- choose a size that fits

RE: ascertain current username

2002-08-16 Thread Timothy Johnson
If you're on a Win32 system, you can use the standard Win32 module. perldoc Win32 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 10:13 AM To: [EMAIL PROTECTED] Subject: ascertain current username Hello, does anybody k

ascertain current username

2002-08-16 Thread Stefan.Haberer
Hello, does anybody know a possibility how to ascertain the current User (User Id, Username) ? I thougt of using a module but couldn't find one. greetings Stefan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]