Re: How to build an executable on Windows

2005-10-18 Thread Octavian Rasnita
I have used ActiveState perlapp, and it works the best. Indigo Star perl2exe works fine, but I found that it might give errors. Maybe I was doing something wrong. PAR is a free package that can create .exe files that can be downloaded from CPAN. It works pretty well, but I found that it creates big

RE: white space between roam and act

2005-10-18 Thread Thomas Bätzler
K.Moeng <[EMAIL PROTECTED]> asked: > I have rephrased my question from yesterday, > > I want to be able to ignore the white space in between ROAM > and ACT that is return the query as ROAM ACT without falling > to the else statement. > > $msg = $ARGV[0]; > > $msg =~ s/\"/' /ig; You do not hav

Re: white space between roam and act

2005-10-18 Thread Suvajit Sengupta
Hi, To ignore the white space in between ROAM and ACT use /x modifier of Perl RE to extend your pattern's legibility by permitting whitespace and comments. Hope that will serve your purpose. Instead of if ($msg =~ /roam act/i) Use if ($msg =~ /roam act/ix) Regards, Suvajit K.Moeng wrote

Re: white space between roam and act

2005-10-18 Thread Elie De Brauwer
Elie De Brauwer wrote: K.Moeng wrote: Hello again, I have rephrased my question from yesterday, I want to be able to ignore the white space in between ROAM and ACT that is return the query as ROAM ACT without falling to the else statement. $msg = $ARGV[0]; $msg =~ s/\"/' /ig; $found = 0;

Re: white space between roam and act

2005-10-18 Thread Beau E. Cox
Hi K.Moeng - At 2005-10-18, 20:00:28 you wrote: >Hello again, > >I have rephrased my question from yesterday, > >I want to be able to ignore the white space in between ROAM and ACT >that is return the query as ROAM ACT without falling to the else statement. > >$msg = $ARGV[0]; > >$msg =~ s/\"/'

Re: white space between roam and act

2005-10-18 Thread Elie De Brauwer
K.Moeng wrote: Hello again, I have rephrased my question from yesterday, I want to be able to ignore the white space in between ROAM and ACT that is return the query as ROAM ACT without falling to the else statement. $msg = $ARGV[0]; $msg =~ s/\"/' /ig; $found = 0; if ($msg =~ /roam act/i)

white space between roam and act

2005-10-18 Thread K.Moeng
Hello again, I have rephrased my question from yesterday, I want to be able to ignore the white space in between ROAM and ACT that is return the query as ROAM ACT without falling to the else statement. $msg = $ARGV[0]; $msg =~ s/\"/' /ig; $found = 0; if ($msg =~ /roam act/i) { $name = 'ACTiv

Re: Matchin 2 strings

2005-10-18 Thread K.Moeng
> OK, > > If i execute it this way, > C:\perl activate.pl 26771214478 ROAM ACT > > activate.pl is the name of the file > 26771214478 is the $source > "Roam ACT" is the 2 query strings > > hopes it makes sense > > > > > - Original Message - > From: "Xavier Noria" <[EMAIL

Re: Destroying an object

2005-10-18 Thread Daniel Kasak
Jeff 'japhy' Pinyan wrote: On Oct 18, Daniel Kasak said: I've got an OO object that I want to destroy from inside the object itself. sub destroy_self { my $self = shift; $self = undef; } But this doesn't work. What is the correct way of doing it? That's because you're not getting rid o

RE: How to build an executable on Windows

2005-10-18 Thread Timothy Johnson
There are three products that I know of, but two of them cost money. ActiveState has a great Perl Dev Kit that includes PerlApp, which will package your perl script, modules, and interpreter into an executable. It works very well. You also get some other great utilities with it, like PerlSvc, wh

RE: How to build an executable on Windows

2005-10-18 Thread Steve Bertrand
> I am running Active State Perl on my PC and want to build a > .exe. Does anyone know the command for that? Although I have only ever built one Perl app on Windows and develop everything on Unix, I found the following to work tremendously well for what you want to do: http://www.indigostar.com

How to build an executable on Windows

2005-10-18 Thread kathyjjja
Hello everyone, I am running Active State Perl on my PC and want to build a .exe. Does anyone know the command for that? Thanks, Kathy - Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

Re: Digest::MD5 hexdigest() and md5_hex() differ

2005-10-18 Thread Adriano Ferreira
On 10/18/05, Gert <[EMAIL PROTECTED]> wrote: > in the example below I am using Digest::MD5 for computing the md5-checksum > for a string. The first solution uses the function md5_hex, the second way > uses the OO method hexdigest. The results are not equal. Shouldn't they be > equal? I think they s

Re: Matchin 2 strings

2005-10-18 Thread JupiterHost.Net
K.Moeng wrote: hello. Hello, Here is my problem. i am unable to return the 2 strings as true. you're not returning anything anywhere... it false back to the else statement. have you tried printing $msg to see what it contains to manually verify it matches what you think it matches?

perten matching

2005-10-18 Thread K.Moeng
hello. Here is my problem. i am unable to return the 2 strings as true. it false back to the else statement. use lib '/usr/lib/perl5'; use POSIX qw(strftime); GET ARGS ## $source = $ARGV[0]; $msg = $ARGV[1]; $msg =~ s/\"/' /ig;#$msg =~ s/"/' /i

Digest::MD5 hexdigest() and md5_hex() differ

2005-10-18 Thread Gert
Hello, in the example below I am using Digest::MD5 for computing the md5-checksum for a string. The first solution uses the function md5_hex, the second way uses the OO method hexdigest. The results are not equal. Shouldn't they be equal? I think they should?

Re: Matchin 2 strings

2005-10-18 Thread Xavier Noria
On Oct 18, 2005, at 18:13, K.Moeng wrote: Here is my problem. i am unable to return the 2 strings as true. it false back to the else statement. Could you please reword the problem? Which strings? Where is the comparison? Back to where? How can you go back to an else? -- fxn -- To unsubs

Matchin 2 strings

2005-10-18 Thread K.Moeng
hello. Here is my problem. i am unable to return the 2 strings as true. it false back to the else statement. use lib '/usr/lib/perl5'; use POSIX qw(strftime); GET ARGS ## $source = $ARGV[0]; $msg = $ARGV[1]; $msg =~ s/\"/' /ig;#$msg =~ s/"/' /

Re: ssh and sudo not working together....

2005-10-18 Thread Chris Devers
On Mon, 17 Oct 2005, O'Brien, Bill wrote: > I have this so far but it is not allowing sudo, just wondering if it > is NET::SSH or that RSA type of SSH we are running? I have tried to > pass numerous commands but that doesn't seem to work, how can I run > numerous commands via the single SSH co

Re: Destroying an object

2005-10-18 Thread Jeff 'japhy' Pinyan
On Oct 18, Daniel Kasak said: I've got an OO object that I want to destroy from inside the object itself. sub destroy_self { my $self = shift; $self = undef; } But this doesn't work. What is the correct way of doing it? That's because you're not getting rid of the CONTENTS of the object,

Re: Which is better?

2005-10-18 Thread Marcello
M. Lewis ha scritto: Thanks Thomas. Appreciated. Thomas Bätzler wrote: Hi, M. Lewis <[EMAIL PROTECTED]> asked: Charles K. Clarkson recently replied to Sreedhar Reddy in which one of the corrections he made was: open my $fh, '<', $input_file or die qq(Cannot open "$input_file": $!); [...

Destroying an object

2005-10-18 Thread Mulander
--cut-- > sub destroy_self { > >my $self = shift; >$self = undef; > > } --cut-- The destroy method must be named DESTROY ( case-sensitive ) So you would have to do: sub DESTROY { my $self = shift; undef $self; } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: Alcatel CORBA 5620 OSS

2005-10-18 Thread Tielman Koekemoer \(TNE\)
> > We have an Alcatel CORBA 5620 gateway from which we have extract > > information. Does anyone know of a module that would enable Perl to > > access this service? > > > > I searched the CPAN's archive but could not find anything. > Apologies > > if this is the wrong list to ask - which would be