Re: Add directories to @INC

2007-03-26 Thread Jeff Pang
> >This appends the new library path to @INC. The usual method however is to >prepend it to @INC, so the added paths are searched first. That would lead to > > unshift @INC, 'Put path to directory here'; > Someone (including me) has mentioned many times,this couldn't work. You should: BEGIN

Re: Mimic SMTP server

2007-03-26 Thread Jeff Pang
> >I need to create a simple perl script that can mimic an SMTP server. Having >some >difficulty coming up with a workable solution. > >The script will need to run as a daemon (24/7) accepting connections on port >25. >When a request comes in, >the script will take in the email as any SMTP ser

Re: Add directories to @INC

2007-03-26 Thread D. Bolliger
Lee Conine am Montag, 26. März 2007 16:03: Hello (just noted Tom Phoenix's answer with the hint to perlfaq8 after writing, but sending anyway...) > I see that there are a lot of people wanting to know how to add > directories to their @INC permanently. > > I accomplished this by adding the foll

Re: Add directories to @INC

2007-03-26 Thread Tom Phoenix
On 3/26/07, Robert Hicks <[EMAIL PROTECTED]> wrote: Jeff Pang wrote: >> I accomplished this by adding the following line to the end of my >> startup.pl file: push(@INC, "Put path to directory here"); >> > > This is not mod_perl list. > Since we discuss about common perl scripts not mod_perl,so

Re: Add directories to @INC

2007-03-26 Thread Robert Hicks
Jeff Pang wrote: I accomplished this by adding the following line to the end of my startup.pl file: push(@INC, "Put path to directory here"); This is not mod_perl list. Since we discuss about common perl scripts not mod_perl,so your way seems not useful here. Instead of being critical may

Re: Diagnosing use/lib problems

2007-03-26 Thread Tom Phoenix
On 3/26/07, Mike Lesser <[EMAIL PROTECTED]> wrote: Hi all. First time using subroutines in external files. I've had some sporadic success with some simple libs (not modules), but can't seem to get consistent results. What do you mean by "sporadic success"? Does something work only on some invo

Win32::OLE packages

2007-03-26 Thread Vladimir Lemberg
Hello All, Does anybody know which package in Win32:OLE will Freeze Panes and call Format Report method in excel document? Thanks in advance, Vladimir

Diagnosing use/lib problems

2007-03-26 Thread Mike Lesser
Hi all. First time using subroutines in external files. I've had some sporadic success with some simple libs (not modules), but can't seem to get consistent results. I've got a few subs files ending in 'pl' in a folder within my scripts' folder: UnitedScripts (dir) myScript.pl Lib

Re: Mimic SMTP server

2007-03-26 Thread Jenda Krynicky
From: "Mike Blezien" <[EMAIL PROTECTED]> > Hello, > > I need to create a simple perl script that can mimic an SMTP server. Having > some > difficulty coming up with a workable solution. > > The script will need to run as a daemon (24/7) accepting connections on port > 25. > When a request com

Re: how can I use a variable in the name of an array ?

2007-03-26 Thread Jenda Krynicky
From: "Chas Owens" <[EMAIL PROTECTED]> > On 3/26/07, Jochen Jansen <[EMAIL PROTECTED]> wrote: > > Hi all, > > I will get the content of an array via a variable in the name of the array. > > Is it possibel to join the array in a way as I wrote? > > I know that my example doesn't work > > Has anybody

Re: Command line fed to Perl was Re: File::Find again

2007-03-26 Thread Jenda Krynicky
From: Alan <[EMAIL PROTECTED]> > It's a different case here ie not a var, instead it's a command line that's > entered into a shell, such command line being passed to Perl. And the > command needs to make it to Perl without getting altered before it gets to > Perl. > > -s "\.

Re: Telnet question in Perl

2007-03-26 Thread jm
the "/"s i was referring to are in your 'waitfor' texts - Password shows '/Password/' rather than 'Password' -> waitfor('/Password/') root shows '/root/' rather than 'root' -> waitfor('/root/') if that doesn't point to the problem, i can't help any further. hopefully someone else can. On

Re: Telnet question in Perl

2007-03-26 Thread jm
simplest questions first... is "sudo" a valid command on that particular system? if so, is "sudo su -" a valid syntax in that environment? is "/Password/" a valid prompt being returned by that system? should the "/"s be a part of the prompt text? i've never included "/"s in my expected returns u

Telnet question in Perl

2007-03-26 Thread Dukelow, Don
I'm using Net::Telnet in my Perl script and I can get through the user login ok. But when I try to "sudo" to root I can't get there. Any ideas? My $TELNET = Net::Telnet->new(Timeout => 10, Prompt => "/$prompt/", Er

Mimic SMTP server

2007-03-26 Thread Mike Blezien
Hello, I need to create a simple perl script that can mimic an SMTP server. Having some difficulty coming up with a workable solution. The script will need to run as a daemon (24/7) accepting connections on port 25. When a request comes in, the script will take in the email as any SMTP server

Re: how can I use a variable in the name of an array ?

2007-03-26 Thread Chas Owens
On 3/26/07, Jochen Jansen <[EMAIL PROTECTED]> wrote: Hi all, I will get the content of an array via a variable in the name of the array. Is it possibel to join the array in a way as I wrote? I know that my example doesn't work Has anybody a solution for me? Thanks a lot Jo @M1= (a,b); @M2= (e,f)

Re: how can I use a variable in the name of an array ?

2007-03-26 Thread John W. Krahn
Jochen Jansen wrote: > Hi all, Hello, > I will get the content of an array via a variable in the name of the array. > Is it possibel to join the array in a way as I wrote? > I know that my example doesn't work > Has anybody a solution for me? > Thanks a lot > Jo > > @M1= (a,b); > @M2= (e,f); > $

how can I use a variable in the name of an array ?

2007-03-26 Thread Jochen Jansen
Hi all, I will get the content of an array via a variable in the name of the array. Is it possibel to join the array in a way as I wrote? I know that my example doesn't work Has anybody a solution for me? Thanks a lot Jo @M1= (a,b); @M2= (e,f); $count = 1; until ( $count > 2 ){ print @M$count

Command line fed to Perl was Re: File::Find again

2007-03-26 Thread Alan
On Monday 26 March 2007 07:32, Dave Gray wrote: > On 3/25/07, Alan <[EMAIL PROTECTED]> wrote: > > On Sunday 25 March 2007 18:14, Matt Herzog wrote: > > > This is all I needed. I swear I had " /($searchstring)/; " in there at > > > some point before . . . so if I pass it > > > > > > -s "\.propertie

Re: How do I generate a hash from an xml document?

2007-03-26 Thread Rob Dixon
Dave Adams wrote: What are the general steps to building a hash from and xml document? Here are my steps: 1. Read in xml document using XML::Simple 2. Create and empty hash 3. Loop through $VAR1 (the anonymous datastructure) and populate hash Is this the general idea or is there a simplier wa

Re: How do I generate a hash from an xml document?

2007-03-26 Thread Beginner
On 26 Mar 2007 at 11:55, Dave Adams wrote: > What are the general steps to building a hash from and xml document? > > Here are my steps: > > 1. Read in xml document using XML::Simple > 2. Create and empty hash > 3. Loop through $VAR1 (the anonymous datastructure) and populate hash > > Is this t

How do I generate a hash from an xml document?

2007-03-26 Thread Dave Adams
What are the general steps to building a hash from and xml document? Here are my steps: 1. Read in xml document using XML::Simple 2. Create and empty hash 3. Loop through $VAR1 (the anonymous datastructure) and populate hash Is this the general idea or is there a simplier way? Thanks to all, D

Re: Add directories to @INC

2007-03-26 Thread Jeff Pang
> >I accomplished this by adding the following line to the end of my >startup.pl file: push(@INC, "Put path to directory here"); > This is not mod_perl list. Since we discuss about common perl scripts not mod_perl,so your way seems not useful here. -- To unsubscribe, e-mail: [EMAIL PROTECTED

Add directories to @INC

2007-03-26 Thread Lee Conine
I see that there are a lot of people wanting to know how to add directories to their @INC permanently. I accomplished this by adding the following line to the end of my startup.pl file: push(@INC, "Put path to directory here"); Restart apache and you should be good to go! Hope this helps.

Re: File::Find again

2007-03-26 Thread Dave Gray
On 3/25/07, Alan <[EMAIL PROTECTED]> wrote: On Sunday 25 March 2007 18:14, Matt Herzog wrote: > This is all I needed. I swear I had " /($searchstring)/; " in there at > some point before . . . so if I pass it > > -s "\.properties$" > > at the command line, it works as expetcted. Nice. That migh

Re: zoned decimal

2007-03-26 Thread Rob Dixon
Ken Foskey wrote: Is there a module that deals with zoned decimal from the mainframe '}' is plus zero for example, after it is converted to ASCII? Convert::IBM390 only seems to handle it in ebcdic format and it is already mucked up before we get the file. Hi Ken. There's nothing I know about,

Re[2]: HTML::TreeBuilder - finding a text element

2007-03-26 Thread Brandino Andreas
ok, thx a lot Sunday, March 25, 2007, 9:38:08 PM, you wrote: > Brandino Andreas wrote: >> >> Hi list >> I am using HTML::TreeBuilder to parse a html page and find a specific >> value. >> >> When i dump the array i get this: >> $tree->dump(); >> more.. >> @0.1.0.1.1.0.

zoned decimal

2007-03-26 Thread Ken Foskey
Is there a module that deals with zoned decimal from the mainframe '}' is plus zero for example, after it is converted to ASCII? Convert::IBM390 only seems to handle it in ebcdic format and it is already mucked up before we get the file. -- Ken Foskey FOSS developer -- To unsubscribe, e-mail: