Re: Cannot create the file~

2005-01-19 Thread Tor Hildrum
On Thu, 20 Jan 2005 10:45:42 +0530, Anish Kumar K. <[EMAIL PROTECTED]> wrote: > Hi > > I am new to CGI..I cannot create a file using CGI. I do execute another > program to create a file, it executes fine..But while using CGI it fails. > > I had used a die statement and after that I tried prin

Re: how do you get the prompt out of cygWIN?

2005-01-19 Thread Chris Devers
On Wed, 19 Jan 2005, Zapa Perl wrote: > I installed cygWIN on win-2000 but I can't figure out > How to launch cygWIN command prompt window. > how do you get the prompt? By default, the Cygwin installer adds a shortcut in the programs section of the Start menu. Do you see it there? Also, by def

how do you get the prompt out of cygWIN?

2005-01-19 Thread Zapa Perl
Hi, I installed cygWIN on win-2000 but I can't figure out How to launch cygWIN command prompt window. how do you get the prompt? Ciao, Zapa. - Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'

Cannot create the file~

2005-01-19 Thread Anish Kumar K.
Hi I am new to CGI..I cannot create a file using CGI. I do execute another program to create a file, it executes fine..But while using CGI it fails. I had used a die statement and after that I tried printing some text after this. it is not getting printed that means it is not printing...Pl

quiet CPAN instead of verbose?

2005-01-19 Thread JupiterHost.Net
http://search.cpan.org/~andk/CPAN-1.76/lib/CPAN.pm#Programmer's_interface Is there any way to make $mod->install and $mod->uptodate not have any output as per below? #!/usr/bin/perl use strict; use warnings; use CPAN; for my $mod (qw(Net::FTP Digest::MD5 Data::Dumper)){ my $obj = CPAN::Shell-

Re: tie hash variable to file

2005-01-19 Thread John W. Krahn
Ken Gillett wrote: I want to pass a string to a subroutine and use that as the name of the hash to tie to a dbm file (or use dbmopen). But I can't make it work with a hash reference in the sub routine. If I use the same code outside the sub or hard code the hash name (i.e. no ref) within the su

Re: dns lookups

2005-01-19 Thread JupiterHost.Net
[EMAIL PROTECTED] wrote: Ok just thought a quick email for some modules would suffice. I will Has it ever? ;p And how could we even offer advice on that without knowing what sort of files you are working with and what you want to do with them? ;p start at cpan. good plan, after that more d

Re: SNMP MIBs in Perl

2005-01-19 Thread Phil Schaechter
Already did the CPAN search, found a bunch (including #1) that don't work at all. I'm looking for someone who has some experience with one. Thanks though -Phil > > SNMP MIBs? > > http://search.cpan.org/search?query=SNMP&mode=all > > 1 and 5 look promising, I would start there > > > I'd lik

Re: dns lookups

2005-01-19 Thread DBSMITH
Ok just thought a quick email for some modules would suffice. I will start at cpan. thank you, ! Derek B. Smith OhioHealth IT UNIX / TSM / EDM Teams "JupiterHost.Net"

Re: tie hash variable to file

2005-01-19 Thread Chris Devers
On Wed, 19 Jan 2005, Ken Gillett wrote: > I want to pass a string to a subroutine and use that as the name of > the hash to tie to a dbm file (or use dbmopen). But I can't make it > work with a hash reference in the sub routine. > > If I use the same code outside the sub or hard code the hash n

tie hash variable to file

2005-01-19 Thread Ken Gillett
I want to pass a string to a subroutine and use that as the name of the hash to tie to a dbm file (or use dbmopen). But I can't make it work with a hash reference in the sub routine. If I use the same code outside the sub or hard code the hash name (i.e. no ref) within the sub it all works perf

Re: Passing Hash Reference from Class Method?

2005-01-19 Thread JupiterHost.Net
steve abrams wrote: Lee, Please reply to the list, if you want our personal consultation we can arrange payment of a consulting fee :) First off, thanks for your advice! Took what you said and passed back a hash within {}, making it 'anonymous', which I learned about today after checking ou

Re: Passing Hash Reference from Class Method?

2005-01-19 Thread steve abrams
Lee, First off, thanks for your advice! Took what you said and passed back a hash within {}, making it 'anonymous', which I learned about today after checking out your code. Now, what we just did, vs. what I was doing in the example without the Method call (if you don't mind, of course).

Re: Net::FTP and filehandle with get()

2005-01-19 Thread John W. Krahn
steve abrams wrote: Hi all, Hello, First post to the group. I have two questions, but they go hand in hand. The first: Net::FTP documentation reports that get syntax is: get ( REMOTE_FILE [, LOCAL_FILE [, WHERE]] ) I do the following (with $ftp initialization omitted here): local $fh = IO::File->

Re: dns lookups

2005-01-19 Thread JupiterHost.Net
[EMAIL PROTECTED] wrote: Does anyone know what modules are good for DNS lookups and data capturing? What did you find on search.cpan.org for "DNS" Derek? What code have you tried? My goal is to open a DNS db file under /var/named for example then search for certain server names with a certain obje

Re: parsing gzipped log files

2005-01-19 Thread Wiggins d Anconia
> Hi all, > can anyone address me to a Perl module/function to parse gzipped log files without uncompressing them via gzip/gunzip? > Thanks > > Mariano > Compress::Zlib is my standard way to do this. If all you want to do is grep them then zgrep will be faster as the others have pointed out. I d

Re: SNMP MIBs in Perl

2005-01-19 Thread Wiggins d Anconia
> Does anyone have any good suggestions for modules that can be used to parse > SNMP MIBs? > http://search.cpan.org/search?query=SNMP&mode=all 1 and 5 look promising, I would start there > I'd like to be able to read the MIB into a data structure, and then look up > OIDs, the types of val

dns lookups

2005-01-19 Thread DBSMITH
Does anyone know what modules are good for DNS lookups and data capturing? My goal is to open a DNS db file under /var/named for example then search for certain server names with a certain object class and a certain object description! We use Lucent's Quip for entering new devices into this domain.

SNMP MIBs in Perl

2005-01-19 Thread Phil Schaechter
Does anyone have any good suggestions for modules that can be used to parse SNMP MIBs? I'd like to be able to read the MIB into a data structure, and then look up OIDs, the types of values, etc. Thanks -Phil -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: Retrieving data from telephone system.

2005-01-19 Thread Jason Balicki
Tor Hildrum wrote: > Unless your going to ask for help with some > actual code you have written, this is better suited > for [EMAIL PROTECTED] Ok, thanks and sorry. In that case: Update: I've discovered that I can't do network stuff right now, but I can send the call t

RE: PERL with grep

2005-01-19 Thread Bob Showalter
Danny Fang wrote: > Hi > I'm a newbie in PERL and wish to seek some help with regards to > pattern matching PERL and grep. Hi, and welcome. First, "perl" is the interpreter for the "Perl" language. "PERL" is considered gauche. :~) > > I would like the script to do the following: [ snip spec

RE: PERL with grep

2005-01-19 Thread Chance Ervin
Where's the code you'ce tried so far? -- - InteleNet Communications Inc. "Help me help you." Chance Ervin - SCSA -- Jerry Maguire Oracle Certified Professional Systems Engineer From: Danny Fang [mailto:

PERL with grep

2005-01-19 Thread Danny Fang
Hi I'm a newbie in PERL and wish to seek some help with regards to pattern matching PERL and grep. I would like the script to do the following: 1) List all *.java files containing following patterns: double, parseDouble 2) Within such files, list all variables and declared as type "double"

RE: parsing gzipped log files

2005-01-19 Thread Thomas Bätzler
Mariano Cunietti <[EMAIL PROTECTED]> asked: > can anyone address me to a Perl module/function to parse > gzipped log files without uncompressing them via gzip/gunzip? You have to uncompress them somehow, but you don't have to uncompress them to a file. I regularly use code like this: if( $file

Re: Passing Hash Reference from Class Method?

2005-01-19 Thread JupiterHost.Net
class def ? this does not throw an error? or you never tried it? Nevermind :) The "# in" was wrapped funny inthe client ;p -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Passing Hash Reference from Class Method?

2005-01-19 Thread JupiterHost.Net
steve abrams wrote: How do I get a hash back from a class method call? Without a class involved (works): sub hashit { my %hash = ("a", "1", "b", "2"); return \%hash; } my $hash_ref = &hashit(); %%% With class (doesn't work): sub hashit {

FW: regex needed

2005-01-19 Thread Manav Mathur
Still cant get to you chris -Original Message- From: Manav Mathur [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 19, 2005 9:44 PM To: Chris Knipe Subject: RE: regex needed Sure thing. I have put my updated scripts in perl.org. As I love making mistakes :( , you must refer to the lat

Passing Hash Reference from Class Method?

2005-01-19 Thread steve abrams
How do I get a hash back from a class method call? Without a class involved (works): sub hashit { my %hash = ("a", "1", "b", "2"); return \%hash; } my $hash_ref = &hashit(); %%% With class (doesn't work): sub hashit {

RE: parsing gzipped log files

2005-01-19 Thread Bob Showalter
Mariano Cunietti wrote: > Hi all, > can anyone address me to a Perl module/function to parse gzipped log > files without uncompressing them via gzip/gunzip? Thanks This search will turn up some modules: http://search.cpan.org/search?query=gzip&mode=module You might also just read from the output

Re: parsing gzipped log files

2005-01-19 Thread Chris Devers
On Wed, 19 Jan 2005, Mariano Cunietti wrote: > can anyone address me to a Perl module/function to parse gzipped log > files without uncompressing them via gzip/gunzip? It's not the solution you asked for, but have you zgrep / zcat ? Any Perl solution is going to have to decompress the file to g

parsing gzipped log files

2005-01-19 Thread Mariano Cunietti
Hi all, can anyone address me to a Perl module/function to parse gzipped log files without uncompressing them via gzip/gunzip? Thanks Mariano -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Scope issue

2005-01-19 Thread B McKee
Hi All I seem to have a problem with scope and/or handling objects here. If I use 'my worksheet = $workbook->add_worksheet("$branchNumber") or die "Couldn't add worksheet $branchNumber \n" ;' then I get 'use of uninitialized variable' when I try to add to the worksheet outside the innermost if {

Re: Reading the first line of a file

2005-01-19 Thread Ing. Branislav Gerzo
Stone [S], on Monday, January 17, 2005 at 16:45 (-0800) typed: >> This should be: >> if ($_ !=~ /\*{5} InTune/) { S> Please ignore this. Your use of the operator is correct. how about: unless(/\*{5} InTune/) { -- ...m8s, cu l8r, Brano. ["`Mother' is God on the lips and hearts of children.

Re: Retrieving data from telephone system.

2005-01-19 Thread Tor Hildrum
On Tue, 18 Jan 2005 17:04:13 -0600, Jason Balicki <[EMAIL PROTECTED]> wrote: > I'm looking for some help with a little project Unless your going to ask for help with some actual code you have written, this is better suited for [EMAIL PROTECTED] regards Tor -- To unsubscribe, e-mail: [EMAIL PRO

Re: Perl Solution (was --> BASH scripting question)

2005-01-19 Thread John W. Krahn
John W. Krahn wrote: Brihas Sarathy wrote: Oops, sorry I posted this to the wrong mailing list. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: regex needed

2005-01-19 Thread John W. Krahn
Manav Mathur wrote: 1) Use $RouteArray[2] instead of $RouteArray['2'] It doesn't make a difference, they both do the same thing. $ perl -le'@x = 11 .. 21; print for $x[ 3 ], $x[ "3" ]' 14 14 John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Perl Solution (was --> BASH scripting question)

2005-01-19 Thread John W. Krahn
Brihas Sarathy wrote: I learned something new and thought you may be interested. Regards, Brihas Problem: I have a text file in UNIX format (i.e. UNIX EOL) to which I would like to do the following: FOR {each blank line} WHERE {the subsequent line starts with a digit (i.e. 1-9)}, {add a % t

RE: regex needed

2005-01-19 Thread Manav Mathur
Whoops, here's the right one. YOu might first like to try printing the list for removing before actually rpoceeding with the "ip route remove". my @RouteList = $Terminal->cmd("ip route print"); foreach (@RouteList) { chomp ; s/^\s*// ; my @RouteArray = split(/ +/,$_,7); if (($Rout