Re: Evaluate an operator given as a string

2008-07-30 Thread peng . kyo
On Wed, Jul 30, 2008 at 10:43 PM, Amit Koren <[EMAIL PROTECTED]> wrote: > if ($x $sign $y) { # want it to be treated as: if ($x >= $y) one way, change the line above to: if (eval "$x $sign $y") { ... } -- Regards, Jeff. - [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED]

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 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

Re: System Call Help

2008-07-24 Thread peng . kyo
On Fri, Jul 25, 2008 at 3:22 AM, <[EMAIL PROTECTED]> wrote: > Greets Guys > > > Trying to Make a system from perl to use the sort. > > > > # @args = ('c:\windows\system32\sort.exe "C\logs\"'); > # system(@args) == 0 > # or die "system @args failed:$?" > rather than calling an externa