> -----Original Message-----
> From: Daniel Falkenberg [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, July 27, 2001 2:50 AM
> To: Beginners (E-mail); Beginners-Cgi (E-mail)
> Subject: UNIQUE ID problems...
> 
> 
> List,
> 
> Interesting problem that I think proves just how much I 
> really don't know about Perl.
> 
> I have copyied most of this variable from the internet... 

Ouch. Some of the worst crap imaginable can be copied from the internet.

> 
> my $unique_id  = time && 0xFFFFF && $$;
> 
>  ALL I know is that this uses Unix time and some sort of 
> process ID and also adds some other magic stuff to it.  

Whoever wrote this is a moron. The result of this expression will always be
the process id. The && is a logical "and" operation. The three values,
time(), 0xFFFFF, and $$ will always be "true". The result of stringing a
bunch of true values together with && will be the rightmost value, namely
$$.

I would avoid this idiot's code like the plague...

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to