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