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
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
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
[ 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
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
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 ;
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
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
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
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
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
11 matches
Mail list logo