exit status

2009-06-30 Thread Irfan Sayed
Hi All, I have one windows batch script in which i am calling one perl script. now what i want to do is if the exit status of that perl script is non zero then batch script should not continue executing further and if the exit status is zero then only it shud further execute. normally we use t

Re: exit status

2009-06-30 Thread Raymond Wan
Hi Irfan, Irfan Sayed wrote: I have one windows batch script in which i am calling one perl script. now what i want to do is if the exit status of that perl script is non zero then batch script should not continue executing further and if the exit status is zero then only it shud further ex

AW: exit status

2009-06-30 Thread Thomas Bätzler
Irfan Sayed asked: > call but in this case how shud i inform to windows batch script that the > perl script execution / exit status is non zero and stop execution > further Use exit() with a non-zero argument. Look at "HELP IF" for your windows batch programming question. HTH, Thomas -- To uns

Using Heap::Elem

2009-06-30 Thread Ankit Singla
Hi, I'm trying to use Fibonacci heaps to keep type of objects sorted. I require the sorting to be over the key. I've only started out with Perl and can't figure out how to extend the Heap::Elem class to make this kind of pair objects for use with Heap::Fibonacci. I have tried reading up the perld

Re: Using Heap::Elem

2009-06-30 Thread Chris Charley
- Original Message - From: "Ankit Singla" Hi, I'm trying to use Fibonacci heaps to keep type of objects sorted. I require the sorting to be over the key. I've only started out with Perl and can't figure out how to extend the Heap::Elem class to make this kind of pair objects for u

Re: Using Heap::Elem

2009-06-30 Thread Ankit Singla
Thanks Chris! These are valuable pointers - I'll try them out and let you know how it goes. Cheers, Ankit - Ankit Singla Research Assistant - EPFL 2009/6/30 Chris Charley : > > - Original Message - From: "Ankit Singla" > > >> Hi, >> >> I'm trying to use

Using MQSeries module with Perl on Windows

2009-06-30 Thread Sneed, Sean P[EQ]
Hello, I am hoping someone would be able to help me use the MQSeries module for Perl on Windows. I have attempted to use the following steps to get the module installed. Everything seems to fail and cannot get it installed. Perl: Installing MQSeries CPAN module on Windows XP Steps to get i

Substitution question

2009-06-30 Thread sanket vaidya
Hi all, As a part of one program I need to get the current working directory. So I get this using cwd(). I want to replace forward slash (/) by backslash (\) in the path which I get because I work on windows. Kindly look at the code below: use warnings; use strict; use Cwd; my $cu

Re: Substitution question

2009-06-30 Thread Gurunandan R. Bhat
Are you sure that your substitution works? With the pattern you have quoted, you should be getting a "Search pattern not terminated" error. To answer your other question, patterns to search must be enclosed inside '/'s (forward slashes). You can change pattern delimiters then you must precede th

Re: Substitution question

2009-06-30 Thread John W. Krahn
sanket vaidya wrote: Hi all, Hello, As a part of one program I need to get the current working directory. So I get this using cwd(). I want to replace forward slash (/) by backslash (\) in the path which I get because I work on windows. You shouldn't need to do that. Kindly look at the co

RE: Substitution question

2009-06-30 Thread sanket vaidya
Thanks John. It works Regards, Sanket Vaidya -Original Message- From: John W. Krahn [mailto:jwkr...@shaw.ca] Sent: Wednesday, July 01, 2009 11:17 AM To: Perl Beginners Subject: Re: Substitution question sanket vaidya wrote: > Hi all, Hello, > As a part of one program I need to get th