Perl Net::Pcap loop hang ??

2005-08-16 Thread Michael Gale
Hello, I have tracked down a problem in my perl script to the module Net::Pcap I believe and the loop mod. So using perl -MPCAN -e shell I tried to install Net:Pcap to see what happens. After the make, it runs a check and produces the following out put: t/01-modules OK t/02-lookup OK t/0

RE: Find string ending with %

2005-08-16 Thread Timothy Johnson
John W. Krahn wrote: > [ message rearranged in chronological order. Please do not top-post ] No. If I'm responding to a message in this format, I'll use this format, but there's nothing illegitimate about top-posting. It is the email format that most of the world follows, using Outlook or Ou

Re: Find string ending with %

2005-08-16 Thread John W. Krahn
[ message rearranged in chronological order. Please do not top-post ] Timothy Johnson wrote: >> From: Keenan, Greg John (Greg)** CTR ** [mailto:[EMAIL PROTECTED] >> >> >> >> my @oput2 = /\b([0-9]+)%/; >> >> > > Just for starters, a regular expression should use the =~ operator, not > th

FW: Find string ending with %

2005-08-16 Thread Keenan, Greg John (Greg)** CTR **
-Original Message- From: John W. Krahn [mailto:[EMAIL PROTECTED] while() { my @oput2 = /(\d+)%/ or next; print "XXX @oput2 XXX\n"; } Thanks John, that's solved it. I'll read up on next. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

RE: A sript to delete programs installed from source

2005-08-16 Thread Chris Devers
On Tue, 16 Aug 2005, Timothy Johnson wrote: > This is not a beginners question. This is a free script question. Try > looking for a free script list. To be fair, this *is* a real problem. The thing is, like many real problems, it has already been solved. Repeatedly. The tool that Harold is l

Re: Find string ending with %

2005-08-16 Thread John W. Krahn
Keenan, Greg John (Greg)** CTR ** wrote: > Hi, Hello, > Need some help with a regex please. > > I need to search a file for every instance of a string that ends with %. > Think output from the df command. I need the 1, 2 or 3 digits before the % > passed into the array. > > Code: > #!/usr/bin/

Unitialized value in hash element problem...

2005-08-16 Thread Tony Frasketi
Hello Listers I'm getting the following error when executing the function listed below... cimagedisp_new.cgi: Use of uninitialized value in hash element at /.../cimagedisp_new.cgi line 238, line 69. 223 #- 224 # Build a hash of price

RE: Find string ending with %

2005-08-16 Thread Timothy Johnson
Just for starters, a regular expression should use the =~ operator, not the = operator. You might have seen some examples like this: while(){ if($_ =~ /mybigregularexpression/){ Do something... } } Check out 'perldoc perlre'. -Original Message- From: Keenan, Greg John (Gr

Re: Unitialized value in hash element problem...

2005-08-16 Thread John W. Krahn
Tony Frasketi wrote: > Hello Listers Hello, > I'm getting the following error when executing the function listed below... It is a warning not an error. > cimagedisp_new.cgi: Use of uninitialized value in hash > element at /.../cimagedisp_new.cgi line 238, line 69. perldoc perldiag [snip]

Find string ending with %

2005-08-16 Thread Keenan, Greg John (Greg)** CTR **
Hi, Need some help with a regex please. I need to search a file for every instance of a string that ends with %. Think output from the df command. I need the 1, 2 or 3 digits before the % passed into the array. Code: #!/usr/bin/perl use warnings; use strict; my $outfile2 = "XXX.dat"; open(DATA

Unitialized value in hash element problem...

2005-08-16 Thread Tony Frasketi
Hello Listers I'm getting the following error when executing the function listed below... cimagedisp_new.cgi: Use of uninitialized value in hash element at /.../cimagedisp_new.cgi line 238, line 69. 223 #- 224 # Build a hash of pri

Re: Replacing Characters only in ()

2005-08-16 Thread Scott Pham
Thanks John, this solution is much better :) On 8/16/05, John W. Krahn <[EMAIL PROTECTED]> wrote: > Scott Pham wrote: > > I currently have this issue I can't seem to get to work correctly or > > more like at all. > > > > I'm looking at a string say: > > > > (one,two,three) word,word2,word3,word4 >

Re: Replacing Characters only in ()

2005-08-16 Thread Scott Pham
Nevermind I think I figured it out :) On 8/16/05, Scott Pham <[EMAIL PROTECTED]> wrote: > I currently have this issue I can't seem to get to work correctly or > more like at all. > > > I'm looking at a string say: > > (one,two,three) word,word2,word3,word4 > > When I split this string using th

Re: Replacing Characters only in ()

2005-08-16 Thread John W. Krahn
Scott Pham wrote: > I currently have this issue I can't seem to get to work correctly or > more like at all. > > I'm looking at a string say: > > (one,two,three) word,word2,word3,word4 > > When I split this string using the comma, it splits the ones in parens as > well. > > (one,two,three) wor

Replacing Characters only in ()

2005-08-16 Thread Scott Pham
I currently have this issue I can't seem to get to work correctly or more like at all. I'm looking at a string say: (one,two,three) word,word2,word3,word4 When I split this string using the comma, it splits the ones in parens as well. (one,two,three) word - this line should only be one string

RE: which packages are installed?

2005-08-16 Thread Brian Volk
> -Original Message- > From: Rex Rex [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 16, 2005 2:12 PM > To: Brian Volk > Cc: Beginners (E-mail) > Subject: Re: which packages are installed? > > > Brian, > > I don't think you can differentiate between what came out-of-the-box > and wha

Re: which packages are installed?

2005-08-16 Thread Rex Rex
Brian, I don't think you can differentiate between what came out-of-the-box and what you had installed on your own as there isn't an XML tag or attribute that I am aware of that would capture this information in PPM.xml file. That much said, this is what I think you are looking out for. # Rex Ar

which packages are installed?

2005-08-16 Thread Brian Volk
Hi All, I'm currently running ActiveState's Active Perl 5.8 at work on WinXP. I'm getting a new machine (WInXP) in a couple of weeks and I was curious if anyone knows how I can list the modules that I have installed. This directory " C:\Perl\site\lib\ppm-conf " has a lot of PKG files, which I

RE: A sript to delete programs installed from source

2005-08-16 Thread Timothy Johnson
This is not a beginners question. This is a free script question. Try looking for a free script list. -Original Message- From: Harold Castro [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 16, 2005 1:18 AM To: beginners@perl.org Subject: A sript to delete programs installed from sourc

Re: array of hashes of arrays...

2005-08-16 Thread Daniel Mueller
On Monday 15 August 2005 22.47, Ryan Perry wrote: > How can I do this correctly? > > > foreach my $col (@columns) { >my %{$col} = ( > string => "$col", > number => [EMAIL PROTECTED] > ); >push

RE: array of hashes of arrays...

2005-08-16 Thread Charles K. Clarkson
Ryan Perry wrote: : How can I do this correctly? : : : foreach my $col (@columns) { :my %{$col} = ( : string => "$col", : number => [EMAIL PROTECTED] : ); :push (@

array of hashes of arrays...

2005-08-16 Thread Ryan Perry
How can I do this correctly? foreach my $col (@columns) { my %{$col} = ( string => "$col", number => [EMAIL PROTECTED] ); push (@graph, \%{$col}); } -- To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: getting the most efficient ways

2005-08-16 Thread John Doe
Beast am Dienstag, 16. August 2005 13.29: > I have these following arrays : > > @employees = (); # has 1000 elements > @managers = (); # has 100 elements > @staffs = (); # employees - managers > > I have @employees and @managers in hand, what is the most efficient ways > to print @staffs? > > So fa

Re: getting the most efficient ways

2005-08-16 Thread Beast
Beast wrote: As you can see, the step will increase as the number of manager increase. Sorry, it should be: foreach my $emp (@employees) { foreach my $mgr (@managers) { if ($mgr eq $emp) { print "$emp is Manager\n"; next; } print "$emp is Staff\n";

Re: Parsing and HTML file and then creating MS-Excel out of it.

2005-08-16 Thread Chris Devers
On Tue, 16 Aug 2005, Nath, Alok (STSD) wrote: > Can anybody send me some pointers for reading an HTML file and > then creating an excel file ? > > Basically what I want to do is read the data in the HTML file and then > create and MS-Excel out of it. I bet you could write a Perl script t

getting the most efficient ways

2005-08-16 Thread Beast
I have these following arrays : @employees = (); # has 1000 elements @managers = (); # has 100 elements @staffs = (); # employees - managers I have @employees and @managers in hand, what is the most efficient ways to print @staffs? So far this is what I've done. ... foreach my $emp (@employe

A sript to delete programs installed from source

2005-08-16 Thread Harold Castro
Hi, It seems that whatever software manager an operating system has, still, programs installed manually from their sources are difficult to removed. Do you have a script that will accomlish this job without further hassle? Thanks ___