Is a way to pass the reference of a object to subroutine?

2003-05-30 Thread Erik W
Hi guys, Is it a way to pass the reference of an object to subroutine? Maybe I am trying to do something stupid and unnecessary here, but I would like to know if it is possible, how to do it? Why is it stupid? Is there a better way? Thanks a lot! Here is the scripts: $CGI=new CGI; test(\$CGI);

Is a way to pass the reference of a object to subroutine?

2003-05-30 Thread Erik W
Hi, I am trying to do something may be totally unnecessary here; $CGI=new CGI; sub { my ($CGI)[EMAIL PROTECTED]; print $CGI->header, $cgi->start_html(-title=>"Message", -class=>"PageBODY"); print "test\n"; # $tmp1->output; print $c

How can I authenticate a user's login password under a shadowed unix system ?

2001-08-31 Thread EriK W
Hi guys, I want to create a script or a cgi script which can authenticate the user login with their unix system password. I know I can use a getent() get the encrypted password, but how I am going to authenticate a user login with this? Thanks! -- To unsubscribe, e-mail: [EMAIL PROTECTED] F

How can I "sleep" and hundreds milliseconds, shorter than 1 second?

2001-08-08 Thread EriK W
How can I "sleep" and hundreds million seconds, shorter than 1 second? I want to have a short sleep which should be shorter than 1 second, it would be ideal if it can sleep for a radom short time between , say.. 300-800 milliseconds? Thank you! -- To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: question about sort

2001-07-23 Thread EriK W
Thank you Paul, Randal!!! :) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: question about sort

2001-07-20 Thread EriK W
Thanks! Paul, you are really good tutor, It is much clear for me now, But I think I still can't easily distinguish the list and scalar context. Like here, you say it is a list context, just because we are using the "sort" or because the ()[0] ? -- To unsubscribe, e-mail: [EMAIL PROTE

Re: question about sort

2001-07-20 Thread EriK W
Thanks , Paul, but I think I can't make it straight part of because my broken English , so it seems make sense for me, but "Paul" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > --- EriK W <[EMAIL PROTECTED]> wrot

question about sort

2001-07-19 Thread EriK W
Hi guys, I have a question maybe about "sort" or regular expression, @new = sort {($b =~ /=(\d+)/)[0] <=> ($a =~ /=(\d+)/)[0]|| uc($a) cmp uc($b) } @old; I don't really understand this /=(\d+)/ [0] thing, expecially that "=" , what does that mean? Thanks! -- To unsubscribe, e-mail: [EMAI

Re: Hi, what time() ^ $$ means?

2001-07-12 Thread EriK W
ed, thunder crashed and Erik W <[EMAIL PROTECTED]> whispered: > | Thanks a lot, then what << means? > | $$<<15 ??? > > It seems to me that you need to spend some time with a good beginners book, > such as Randal's. Or, at least, the man pages. These questions

Re: Hi, what time() ^ $$ means?

2001-07-10 Thread Erik W
--- "Stephen P. Potter" <[EMAIL PROTECTED]> wrote: > Lightning flashed, thunder crashed and Erik W > <[EMAIL PROTECTED]> whispered: > | time() ^ $$ > | > | What ^ and $$ mean here? > | > | ^ bit xor? > | $$ logic and? > > $$ is a specia

Hi, what time() ^ $$ means?

2001-07-10 Thread Erik W
Hi gurus, I have a dumb question, when I read the book, I saw they generate and seed by using time() ^ $$ What ^ and $$ mean here? ^ bit xor? $$ logic and? Thanks in advance! __ Do You Yahoo!? Get personalized email addresses from Yahoo!