Re: A question about Win32:OLE

2005-06-09 Thread Japerlh
Siegfried, Thanks for your help. I got the CLSID of the application, through CLSID, I got the progid of this application from regedit, But I still cannot get any thing about the application from OLE/COM Object Viewer. At last, I found a good way to view it from OLE/COM Object Viewer, File/View

Re: @array =to=> $array

2005-06-09 Thread Lawrence Statton
> [EMAIL PROTECTED] wrote: > > > Hi All > > > >Prob: I want to convert all the elememts of an array to ascalor variable tha > t I can use latter on in my code > >e.g. > > > >my @array=qw/balli johney bobby/; > >now here i need 3 different variable with the above values i.e. > >my $name1=balli ;

Re: @array =to=> $array

2005-06-09 Thread Wiggins d'Anconia
Pablo Wolter wrote: > [EMAIL PROTECTED] wrote: > > >>Hi All >> >>Prob: I want to convert all the elememts of an array to ascalor variable that >>I can use latter on in my code >>e.g. >> >>my @array=qw/balli johney bobby/; >>now here i need 3 different variable with the above values i.e. >>my

Re: @array =to=> $array

2005-06-09 Thread Pablo Wolter
[EMAIL PROTECTED] wrote: > Hi All > >Prob: I want to convert all the elememts of an array to ascalor variable that >I can use latter on in my code >e.g. > >my @array=qw/balli johney bobby/; >now here i need 3 different variable with the above values i.e. >my $name1=balli ; >my $name2=johney ;

Re: @array =to=> $array

2005-06-09 Thread John W. Krahn
[EMAIL PROTECTED] wrote: Each element of an array *is* a scalar so why do you think you need to do this? my ( $name1, $name2, $name3 ) = @array; True, But how would I know how many ($name) to use in the line above In my case for a perticular user I have some bad volumes which are @array

Re: @array =to=> $array

2005-06-09 Thread Lawrence Statton
> Hi All > > Prob: I want to convert all the elememts of an array to ascalor variable that > I can use latter on in my code > e.g. > > my @array=qw/balli johney bobby/; > now here i need 3 different variable with the above values i.e. > my $name1=balli ; > my $name2=johney ; > my $name3=bo

Re: @array =to=> $array

2005-06-09 Thread John W. Krahn
[EMAIL PROTECTED] wrote: Hi All Hello, Prob: I want to convert all the elememts of an array to ascalor variable that I can use latter on in my code Each element of an array *is* a scalar so why do you think you need to do this? e.g. my @array=qw/balli johney bobby/; now here i need 3 d

@array =to=> $array

2005-06-09 Thread shoker
Hi All Prob: I want to convert all the elememts of an array to ascalor variable that I can use latter on in my code e.g. my @array=qw/balli johney bobby/; now here i need 3 different variable with the above values i.e. my $name1=balli ; my $name2=johney ; my $name3=bobby ; Soln so far: my

Re: host id

2005-06-09 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: >>>I, being too lazy to look up a perl function, would use >> >>hostname command in >> >>>backticks like so: >>> >>>$HostID = `hostname`; >>> >> >>Right which is why the above is "too lazy". Anyone reading this please >>don't settle for the above, it is error prone, insecu

RE: host id

2005-06-09 Thread brian . barto
> > I, being too lazy to look up a perl function, would use > hostname command in > > backticks like so: > > > > $HostID = `hostname`; > > > > Right which is why the above is "too lazy". Anyone reading this please > don't settle for the above, it is error prone, insecure, and > insufficient. T

Re: using open3 to interact with external program--ANSWER FOUND

2005-06-09 Thread John W. Krahn
zentara wrote: On Wed, 08 Jun 2005 09:24:43 +0100, [EMAIL PROTECTED] (D. J. Birkett) wrote: Thomas Bätzler wrote: D. J. Birkett <[EMAIL PROTECTED]> asked: OK I've tried altering my code as you suggested, replacing the regexes with ones that would work. gpg still just sits there as soon as

RE: host id

2005-06-09 Thread brian . barto
> > "When in Rome, do as the Romans do." It's true all over. The polite > thing to do when participating in *any* group -- not just > this one, not > just internet stuff, but any human interaction -- is to adapt your > manner of presenting yourself to be in harmony with the group. > > If you not

RE: host id

2005-06-09 Thread Chris Devers
On Thu, 9 Jun 2005, Ryan Frantz wrote: > Sure, don't top-post. But then who's gonna bother to scroll to the > end of the email as the thread gets longer? Polite people trim their replies to avoid this problem. > Many users don't even realize that there is a reply in bottom-posted > emails. Bro

RE: host id

2005-06-09 Thread Ryan Frantz
Sure, don't top-post. But then who's gonna bother to scroll to the end of the email as the thread gets longer? Many users don't even realize that there is a reply in bottom-posted emails. Bottom-posting ignores the natural behavior of most users. Another example of human behavior (top vs. botto

Re: host id

2005-06-09 Thread Wiggins d'Anconia
"Because it's up-side down. Why is that? It makes replies harder to read. Why not? Please don't top-post." - Sherm Pendley, Mac OS X list [EMAIL PROTECTED] wrote: > I, being too lazy to look up a perl function, would use hostname command in > backticks like so: > > $HostID = `hostname`; > Right

RE: host id

2005-06-09 Thread brian . barto
I, being too lazy to look up a perl function, would use hostname command in backticks like so: $HostID = `hostname`; Not sure if that will catch a newline character so I would also follow it with this: $HostID =~ s/\n//; -Original Message- From: Bret Goodfellow [mailto:[EMAIL PROTECTED]

Re: host id

2005-06-09 Thread John W. Krahn
Bret Goodfellow wrote: Simple question to answer, I hope. I am running on an HP-UX system, and would like to retrive the UNIX system's host-id (name of box). Is there a function to do this? This may be what you want: perldoc Sys::Hostname John -- use Perl; program fulfillment -- To unsubscr

Re: Regex needed

2005-06-09 Thread John Doe
Robert am Donnerstag, 9. Juni 2005 14.51: > I have a log file where the last portion of the events look like: > > Printer driver: (Lexmark T520) > > Where the portion in parens will change but it will always look like that. If I guess right that you want to extract the portion in (), what abou

host id

2005-06-09 Thread Bret Goodfellow
Simple question to answer, I hope. I am running on an HP-UX system, and would like to retrive the UNIX system's host-id (name of box). Is there a function to do this?

DBI to XML

2005-06-09 Thread radhika
Hi, I am looking for a perl module that can directly take data retrieved from the db and write out an XML file. A circuitous route I had previously taken was to take the output and write it out to CSV files, which then used XML::CSV to convert it to XML. But recently on this list I discovered the m

Regex needed

2005-06-09 Thread Robert
I have a log file where the last portion of the events look like: Printer driver: (Lexmark T520) Where the portion in parens will change but it will always look like that. Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Error on trying to install Image::Magick

2005-06-09 Thread Chris Devers
On Fri, 13 May 2005, Tham, Philip wrote: > I am getting a screen full of errors when trying to build Image::Magick Is the [non-Perl] ImageMagick suite installed? The Perl Image::Magick library will, as I understand it, depend on this. You get "probably harmless" warnings that I think are actual

RE: Error on trying to install Image::Magick

2005-06-09 Thread Tham, Philip
I did not receive any response yet. -Original Message- From: Colin Johnson [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 1:34 AM To: Tham, Philip Subject: Error on trying to install Image::Magick Hello Philip, Did you solve your problem installing Image::Magick? (I have exac

Re: MySQL Query (off Topic - sorry)

2005-06-09 Thread jm
select from where > date_sub(curdate(), interval 3 month); give that a shot On 6/9/05, Graeme McLaren <[EMAIL PROTECTED]> wrote: > Hi all, wondering if anyone can help me out with a mysql query (bit off > topic I know) > > select id, title, DATE_FORMAT(auto_enter_date, '%D %b %Y') as date f

MySQL Query (off Topic - sorry)

2005-06-09 Thread Graeme McLaren
Hi all, wondering if anyone can help me out with a mysql query (bit off topic I know) select id, title, DATE_FORMAT(auto_enter_date, '%D %b %Y') as date from dci where auto_enter_date between ((DATE_SUB(CURDATE(), INTERVAL 90 DAY) and DATE_FORMAT(CURDATE, '%D %b %Y')); I want to select the

RE: xml parser

2005-06-09 Thread Dermot Paikkos
Yeap that seems to have done it. Thanx Thomas. Dp. On 9 Jun 2005 at 12:23, Thomas Bätzler wrote: > Dermot Paikkos <[EMAIL PROTECTED]> asked: > > Thanx for the replies. At the moment I am testing the water > > so I am using Activestate 5.8. All I have done with > > XML::Simple is below. > > > > =

RE: xml parser

2005-06-09 Thread Thomas Bätzler
Dermot Paikkos <[EMAIL PROTECTED]> asked: > Thanx for the replies. At the moment I am testing the water > so I am using Activestate 5.8. All I have done with > XML::Simple is below. > > = xml-parse.pl = > #!/bin/perl > use strict; > use XML::Simple; > use Data::Dumper; > > m

xml parser

2005-06-09 Thread Dermot Paikkos
Hi, Thanx for the replies. At the moment I am testing the water so I am using Activestate 5.8. All I have done with XML::Simple is below. = xml-parse.pl = #!/bin/perl use strict; use XML::Simple; use Data::Dumper; my $file = shift; # Doesn't like

RE: Read output from script line by line

2005-06-09 Thread Tielman Koekemoer \(TNE\)
Thanks Thomas. > -Original Message- > From: Thomas Bätzler [mailto:[EMAIL PROTECTED] > Sent: 09 June 2005 09:50 AM > To: 'Perl Beginners' > Cc: Tielman Koekemoer (TNE) > Subject: RE: Read output from script line by line > > Tielman Koekemoer (TNE) <[EMAIL PROTECTED]> asked: > > Is there

RE: Read output from script line by line

2005-06-09 Thread Tielman Koekemoer \(TNE\)
Thanks Marcos. > -Original Message- > From: marcos rebelo [mailto:[EMAIL PROTECTED] > Sent: 09 June 2005 09:48 AM > To: Tielman Koekemoer (TNE) > Cc: Perl Beginners > Subject: Re: Read output from script line by line > > This way works > > open(my $FH, 'script.sh |') or die ...; > whi

RE: Read output from script line by line

2005-06-09 Thread Thomas Bätzler
Tielman Koekemoer (TNE) <[EMAIL PROTECTED]> asked: > Is there a way you read input from a script line by line. I'd > rather parse output line by line than do: @out = `script.sh`; > which seems sloppy. Or is that the best way? No, not really. You can do a "pipe open" like this my $code

Re: Read output from script line by line

2005-06-09 Thread marcos rebelo
This way works open(my $FH, 'script.sh |') or die ...; while (my $line = <$FH>) { ... } close($FH); On 6/9/05, Tielman Koekemoer (TNE) <[EMAIL PROTECTED]> wrote: > > Hello all, > > Is there a way you read input from a script line by line. I'd rather > parse output line by line than do: @out

Read output from script line by line

2005-06-09 Thread Tielman Koekemoer \(TNE\)
Hello all, Is there a way you read input from a script line by line. I'd rather parse output line by line than do: @out = `script.sh`; which seems sloppy. Or is that the best way? TIA