RE: run command in a particular dir

2007-01-08 Thread Thomas Bätzler
[EMAIL PROTECTED] <[EMAIL PROTECTED]> asked: > I need to run a particular command "cleartool des " from a > partiuclar folder. Try chdir 'm:/Arun Main' or die "Can't change CWD: $!": HTH, Thomas -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] h

run command in a particular dir

2007-01-08 Thread Arun . S
Hi, I need to run a particular command "cleartool des " from a partiuclar folder. For example: I need to get into directory m: cd \ Arun_Main and then run cleartool des $temp . I wrote the following code for this foreach $temp(@vob2) { qx(m: cd \\Arun_Main); $x = qx(cleartool des $temp); $hash{$

Re: Reversing Digits

2007-01-08 Thread John W. Krahn
Dharshana Eswaran wrote: > Hi all, Hello, > I was trying to reverse the digits. > > For eg: if i have 50, i wanted to print 05 > > Can anyone tell me a simple way? $ perl -le'my $digits = "05"; print for $digits, scalar reverse $digits' 05 50 John -- Perl isn't a toolbox, but a small machin

Re: Reversing Digits

2007-01-08 Thread Deepak Barua
Basically you can use the divide modulus % and then eliminate the digit using normal divide... but then the cooler way is to convert to BCD and then extract nibble by nibble... Regards Deepak On 1/9/07, Dharshana Eswaran <[EMAIL PROTECTED]> wrote: Hi all, I was trying to reverse the digits. F

Reversing Digits

2007-01-08 Thread Dharshana Eswaran
Hi all, I was trying to reverse the digits. For eg: if i have 50, i wanted to print 05 Can anyone tell me a simple way? Thanks and Regards, Dharshana

Re: Checking for infinite loops

2007-01-08 Thread Jay Savage
On 1/8/07, hOURS <[EMAIL PROTECTED]> wrote: Hi everyone, Jay offered me the following code to help with something. I don't undertand it, but tried to use it anyway to see if it would work. The computer told me there was a syntax error in the area I highlighted in color. I can't find it

Re: Checking for infinite loops

2007-01-08 Thread hOURS
Hi everyone, Jay offered me the following code to help with something. I don't undertand it, but tried to use it anyway to see if it would work. The computer told me there was a syntax error in the area I highlighted in color. I can't find it - maybe that's because I don't understand th

Re: .pm

2007-01-08 Thread Tom Phoenix
On 1/8/07, xavier mas <[EMAIL PROTECTED]> wrote: I want to install the Copy::File module and utf-8 pragma If Perl is properly installed, you should have the File::Copy module and all pragmas installed as well. So if you don't have those, re-install Perl. Good luck with it! --Tom Phoenix Stone

.pm

2007-01-08 Thread xavier mas
Hi, list! I want to install the Copy::File module and utf-8 pragma but I can download only the .pm file. How do I have to install it? Or Where do I have to copy it if that is the case -I guess this is the unzip and file to install? Thanks a lot for your help. -- Xavier Mas -- To unsubscribe

Re: perl gtk2 tutorial

2007-01-08 Thread Saurabh Singhvi
Hi thanks a lot! I found another dirty way of doing it though using counter ;) thanks again Saurabh On 1/8/07, zentara <[EMAIL PROTECTED]> wrote: On Sun, 7 Jan 2007 20:54:39 +, [EMAIL PROTECTED] ("Saurabh Singhvi") wrote: >Hi all, > >thanks for both of the links, I already seem to have g

First program

2007-01-08 Thread Dave Moore
Hello list- I've recently decided to learn a programming language, and for reasons beyond the scope of this post I chose Perl. I've read some books, and I decided to make a dice-rolling IRC bot. I wanted to use POE::Component::IRC because it looks really cool.. unfortunately I don't know very muc

Re: Impact of U.S. Daylight Savings Time changes in 2007 on Perl distribution/code

2007-01-08 Thread Peter Scott
On Sun, 07 Jan 2007 17:40:57 +, Kôôl Delhite wrote: > As far as I know Perl uses the date/time functionality > based on the operating system settings, hence as long > as the operating system is ready for it, Perl should > be good. > I also don't think perl manages timezone data > internally.

RE: perl script instead of grep

2007-01-08 Thread andreas . moroder
Quoting Roman <[EMAIL PROTECTED]>: Hope fully this helps ### Script start use strict; my $process_dir = 'C:\work\_RHWork\projects\perl-beginers\directory-read\files-dir'; opendir(DIR,$process_dir) or die "Can't open dir: $! \n"; my @files = readdir(DIR) or die "Can't read dir: $! \n"; c

RE: perl script instead of grep

2007-01-08 Thread andreas . moroder
Hope fully this helps ### Script start use strict; ... Hello, problem solved. The script was writeen for windows with \\ in the path. It should run on a linux box. I replaced the \\ with // and now it works. Is ti possible, for compatibility, to use // in windows too ? Thanks Andreas

XML READ ERROR

2007-01-08 Thread perl pra
Hi Gurus, I have a problem with reading xml file which has foriegn characters (like plutôt) using xml::Simple. I get xml read error. Then I included encoding=iso8859-1 at the top of xml file. I am able to read the xml file , but the characters are changed to plut?t instead of plutôt, Becau

Re: xml read Error (while reading xml file with foriegn characters)

2007-01-08 Thread Mumia W.
On 01/08/2007 12:53 AM, perl pra wrote: Hi Guru, I have a problem with reading xml file which has foriegn characters (like plutôt) using xml::Simple. I get xml read error. Then I included encoding=iso8859-1 at the top of xml file. I am able to read the xml file , but the characters are cha

RE: perl script instead of grep

2007-01-08 Thread Ken Foskey
On Mon, 2007-01-08 at 20:04 +1100, Roman wrote: > Yes I should have used / instead of \ it would have worked on both. I also > should have changed the path > > 'C:\work\_RHWork\projects\perl-beginers\directory-read\files-dir'; > > To > 'C:/work/_RHWork/projects/perl-beginers/directory-read/files

RE: perl script instead of grep

2007-01-08 Thread Roman
Yes I should have used / instead of \ it would have worked on both. I also should have changed the path > 'C:\work\_RHWork\projects\perl-beginers\directory-read\files-dir'; To > 'C:/work/_RHWork/projects/perl-beginers/directory-read/files-dir'; That way you can should be able to run it on windo