in reply to Re: Session ID Generator (Rolled My Own)
in thread Session ID Generator (Rolled My Own)
my @Chars = '0'..'9', 'A'..'Z', 'a'..'z';
That won't work as you might expect. You'll actually need:
my @Chars = ('0'..'9', 'A'..'Z', 'a'..'z');
Those parens aren't optional. Here's a demonstration:
$ perl -le 'my @one="0".."9","a".."z"; my @two=("0".."9","a".."z"); pr +int @one; print @two' 0123456789 0123456789abcdefghijklmnopqrstuvwxyz
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Session ID Generator (Rolled My Own)
by Zaxo (Archbishop) on Sep 15, 2002 at 05:30 UTC | |
|
Re: Re: Re: Session ID Generator (Rolled My Own)
by jerrygarciuh (Curate) on Sep 15, 2002 at 18:10 UTC |