Problem related to ZGV installation

2008-07-28 Thread sanket vaidya
Hi all, I have posted this in couple of LINUX groups before 5 days & yet have not got any reply. Can anyone from this group could help me out? I am a beginner & I haven't installed anything on LINUX. I use KNOPPIX 3.7 Live CD. I have downloaded the ZGV to view images in Text-only mod

Re: rand()

2008-07-28 Thread Mr. Shawn H. Corey
On Mon, 2008-07-28 at 13:17 -0700, Bobby wrote: > How do i convert values with that list from a string to itegers so > that the script will work properly? See `perldoc -f split` -- Just my 0.0002 million dollars worth, Shawn "Where there's duct tape, there's hope." "Perl is the duct tap

Re: rand()

2008-07-28 Thread Bobby
That worked Shawn. Thanks.   I'm passing @nums values from an html form; so now my @nums = ($list) where $list = 97000,97005,98000,96100,94003 . The rand funtion now interprets $list as a string and not integers so the script doesn't works anymore. How do i convert values with that list from a

Re: rand()

2008-07-28 Thread Chris Charley
- Original Message - From: "Bobby" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: Sent: Monday, July 28, 2008 10:54 AM Subject: rand() Hi all, How do I use the rand function to print out more than one random number for an array? In the example script below i have an array @nums

Re: rand()

2008-07-28 Thread John W. Krahn
Bobby wrote: That helps but how would i just get back an X number of random numbers because @nums could be in the hundreds of unique numbers. For instance, i just want to randomly pickout 4 numbers from a long list of unique numbers in @nums, how would i do that? use List::Util qw' shuffle ';

Re: rand()

2008-07-28 Thread Mr. Shawn H. Corey
On Mon, 2008-07-28 at 19:02 +0100, Aruna Goke wrote: > [EMAIL PROTECTED] wrote: > > On Mon, Jul 28, 2008 at 11:52 PM, Bobby <[EMAIL PROTECTED]> wrote: > >> Peng, > >> > >> > >> > >> Could you give me an example code? I want to randomly select X numbers of > >> numbers from the @nums list. For insta

Re: rand()

2008-07-28 Thread Aruna Goke
[EMAIL PROTECTED] wrote: On Mon, Jul 28, 2008 at 11:52 PM, Bobby <[EMAIL PROTECTED]> wrote: Peng, Could you give me an example code? I want to randomly select X numbers of numbers from the @nums list. For instance, i want to randomly select 3 numbers from @nums i.e. 1, 10005, 14. How

Re: rand()

2008-07-28 Thread Bobby
Peng,   I've ran a few tests and the code returned duplicate numbers, is there a way to have the script returns only unique values? thanks.     10005 150 10004 10004 150 10002 150 10006 10006 14 --- On Mon, 7/28/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: From: [EMAIL PROTEC

Re: rand()

2008-07-28 Thread Bobby
Thanks Peng, that was what I was looking for. One more question, if i want to ensure true randomness instead of pseudo-random; would the Math::TruRandom module be my best option? Has any of you worked with that before. I'm install that module now and it's taking a long time to run a make test, h

Re: rand()

2008-07-28 Thread Bobby
Aruna,   That helps but how would i just get back an X number of random numbers because @nums could be in the hundreds of unique numbers. For instance, i just want to randomly pickout 4 numbers from a long list of unique numbers in @nums, how would i do that? Thanks.   --- On Mon, 7/28/08, Arun

Re: rand()

2008-07-28 Thread peng . kyo
On Mon, Jul 28, 2008 at 11:52 PM, Bobby <[EMAIL PROTECTED]> wrote: > Peng, > > > > Could you give me an example code? I want to randomly select X numbers of > numbers from the @nums list. For instance, i want to randomly select 3 > numbers from @nums i.e. 1, 10005, 14. How would you use sr

Re: rand()

2008-07-28 Thread Aruna Goke
Bobby wrote: Hi all, How do I use the rand function to print out more than one random number for an array? In the example script below i have an array @nums with a list of numbers; how do i print out more than one random numbers from that list (@nums)? Thanks. #!/usr/bin/perl use strict; us

Re: rand()

2008-07-28 Thread Bobby
Peng,   Could you give me an example code? I want to randomly select X numbers of numbers from the @nums list. For instance, i want to randomly select 3 numbers from @nums i.e.  1, 10005, 14. How would you use srand to do this?   Would Math::TrulyRandom be a better solution since i want

Re: rand()

2008-07-28 Thread peng . kyo
On Mon, Jul 28, 2008 at 10:54 PM, Bobby <[EMAIL PROTECTED]> wrote: > Hi all, > > How do I use the rand function to print out more than one random number for > an array? In the example script below i have an array @nums with a list of > numbers; how do i print out more than one random numbers from

rand()

2008-07-28 Thread Bobby
Hi all,   How do I use the rand function to print out more than one random number for an array? In the example script below i have an array @nums with a list of numbers; how do i print out more than one random numbers from that list (@nums)? Thanks.   #!/usr/bin/perl use strict; use warnings; m

Re: getting process id under NT

2008-07-28 Thread happytown
On Jul 26, 3:14 am, [EMAIL PROTECTED] (Epanda) wrote: > Hi, > > I would like to know if it is possible to get win32 process ID under > Windows NT without using Win32::OLE because this one does not work > under NT. > > Thanks Maybe, this module can help you: http://search.cpan.org/~cosimo/Win32-API

Re: Pipe print output into shell in debugger

2008-07-28 Thread Marek
On Jul 28, 1:27 am, [EMAIL PROTECTED] (Richard Lee) wrote: > > I am sure there are other ways to do this but I always wonder how to get > this done. > Many research and I found that I could have |  (pipe) precede your > command and output will go to your pager. > I am just not sure how to change t

RE: while trying to learn pack

2008-07-28 Thread Bob McConnell
From: Richard Lee >John W. Krahn wrote: >> Richard Lee wrote: >>> I am begining to read bit of low level(assembly) book to just gain >>> some knoweldge on inner workings of memory. >>> >>> My quesiton is, if machine is 32 bit, even if it's accessing string >>> 'A', it will have to fetch 32 bit (i