Re: how and where to install module

2008-03-09 Thread itshardtogetone
Thanks, Ok, I have successfully installed Algorithm::Numerical::Shuffle using the activestate PPM. I am using windowsXP. I have installed Perl in c:\perl So how do I use the above installed "shuffle" module to shuffle the list below :- @cards = (1,2,3,4,5,6,7,8,9,10); Thanks - Original

Re: how and where to install module

2008-03-09 Thread itshardtogetone
ok, this is what I have tried but I got and internal system error msg like this "An internal system error has occurred which prevents us from responding to your request. " - start of script-- use Algorithm::Numerical::Shuffle; Shuffle @baccarat = (1,2,3,4,5,6,7,8,9,10,j,Q

Re: how and where to install module

2008-03-09 Thread itshardtogetone
Thanks, Ok, I have successfully installed Algorithm::Numerical::Shuffle using the activestate PPM. I am using windowsXP. I have installed Perl in c:\perl So how do I use the above installed "shuffle" module to shuffle the list below :- @cards = (1,2,3,4,5,6,7,8,9,10); Thanks - Original

Re: off topic Re: free servers wanted

2008-03-09 Thread Gunnar Hjalmarsson
[ Please do not top-post! ] [EMAIL PROTECTED] wrote: Gunnar Hjalmarsson wrote: Wolf wrote: [EMAIL PROTECTED] wrote: I wish to run my perl/cgi scripts from Windows Internet explorer in offline mode, therefore I need to activate some kind of servers, can someone here recommend me some fre

Re: how and where to install module

2008-03-09 Thread yitzle
On Sun, Mar 9, 2008 at 6:13 AM, <[EMAIL PROTECTED]> wrote: > ok, this is what I have tried but I got and internal system error msg like > this "An internal system error has occurred which prevents us from > responding to your request. " > - start of script-- > use Algor

how do I shorten this code

2008-03-09 Thread itshardtogetone
Hi, I wish to shuffle 8 decks of cards, so how do I shorten this code :- use Algorithm::Numerical::Shuffle qw /shuffle/; @eightdecks = shuffle (1..10,"J","Q","K",1..10,"J","Q","K",1..10,"J","Q","K");#how do I repeat 1 to K 32 times print @eightdecks ;

Re: how do I shorten this code

2008-03-09 Thread Chas. Owens
On Sun, Mar 9, 2008 at 12:23 PM, <[EMAIL PROTECTED]> wrote: > Hi, > I wish to shuffle 8 decks of cards, so how do I shorten this code :- > > use Algorithm::Numerical::Shuffle qw /shuffle/; > @eightdecks = shuffle > (1..10,"J","Q","K",1..10,"J","Q","K",1..10,"J","Q","K");#how do I repeat 1 to

Re: how and where to install module

2008-03-09 Thread Tom Phoenix
On Sun, Mar 9, 2008 at 2:13 AM, <[EMAIL PROTECTED]> wrote: > ok, this is what I have tried but I got and internal system error msg like > this "An internal system error has occurred which prevents us from > responding to your request. " Is that an error message from your webserver? Perhaps you

extracting values from split without using an array

2008-03-09 Thread igotux igotux
Hi, I want to extract values from split without defining an array. Say i want to access second element in the split output :- split (/\s+/,$var) . I tried split(/\s+/,$var)[1] which is not working as i expected. Can someone please correct me on this ? Thanks, IGotux

Re: extracting values from split without using an array

2008-03-09 Thread Rodrick Brown
On Mon, Mar 10, 2008 at 1:37 AM, igotux igotux <[EMAIL PROTECTED]> wrote: > Hi, > I want to extract values from split without defining an array. Say i want to > access second element in the split output :- split (/\s+/,$var) . I tried > split(/\s+/,$var)[1] which is not working as i expected. C

Re: extracting values from split without using an array

2008-03-09 Thread J. Peng
On Mon, Mar 10, 2008 at 1:37 PM, igotux igotux <[EMAIL PROTECTED]> wrote: >I tried > split(/\s+/,$var)[1] which is not working as i expected. You may be moving from python,:) In perl you should say, (split /\s+/,$var)[1]; because split /\s+/$var returns a list, use () to enclose the list's sco