Run perl scripts in Windows

2011-10-18 Thread Remy Guo
hi all, I have a Perl script in Windows but my system administrator doesn't allow me to install ActivePerl nor i guess anything that will change rigistry on the machine. is there any other way to run the script? Thanks.. Remy

Re: How to make a hash in a subroutine accessible by all other subrountines?

2010-04-29 Thread Remy Guo
I got the concept...but how to pass the reference? I'm really not familiar with the referencetoo bad. :( 2010/4/29 Akhthar Parvez K > Hi, > > On Thursday 29 Apr 2010, Remy Guo wrote: > > I've got a problem in following script: > > sub A { > &g

How to make a hash in a subroutine accessible by all other subrountines?

2010-04-29 Thread Remy Guo
hi all, I've got a problem in following script: sub A { our %a; $a{"fred"} = 1; $a{"bella"} = 2; ... } sub B { if ($fred != $a{"fred"}) { print "fred failed.\n"; } if ($bella != $a{"bella"} { print "bella failed.\n"; } } The problem is, I made the has

Re: Problem about substitution..

2009-11-02 Thread Remy Guo
oops...sorry, the subitution line should be $_ =~ s/\(.*\)/$i;$j/ but it doesn't work... 2009/11/3 Remy Guo > hi folks, > i've got problem when trying to perform a substitution. > > the text file i want to process is like this: > ... > XX { > ABDADADGA &g

Problem about substitution..

2009-11-02 Thread Remy Guo
hi folks, i've got problem when trying to perform a substitution. the text file i want to process is like this: ... XX { ABDADADGA afj*DHFHH } (a123) XXDFAAF { af2hwefh fauufui } (b332) ... i want to match the content in the parenthesis (a123 and b332, here) and replace them with a sorted

question about text operation using regex.

2008-08-05 Thread Remy Guo
hi all, i have a txt log file and i want to delete the 9th character of each line. how can i do it using regex?...thanks! -Remy

Re: what is ^M at the end of a line?

2008-05-21 Thread Remy Guo
it's done! great~ :) \r can match the ^M. thanks all~ Microsoft costs me several hours -_- 2008/5/21 Bob McConnell <[EMAIL PROTECTED]>: > From: Rob Coops > > > That ^M is a line feed, or well the windows version of a line feed. > > Actually, it is an ASCII CR or carriage return. Microsoft u

Re: what is ^M at the end of a line?

2008-05-21 Thread Remy Guo
> way, if you want to do it in perl then you will most likely have to use a > regex because not all moachines will have the dos2unix applicaiton > available. > > Regards, > > Rob Coops > > On Wed, May 21, 2008 at 10:45 AM, Remy Guo <[EMAIL PROTECTED]> > wrote: > >

what is ^M at the end of a line?

2008-05-21 Thread Remy Guo
hi all, i have a text processing script that can work with a file but cannot work with another file that has the same content. as i compared the 2 files, i found the file that cannot work has a "^M" at the end of each line. what is this? is this what made it not work? by the way, i'm under unix. th