Re: encrypt the password stored in a file

2005-08-29 Thread Owen Cook
On Mon, 29 Aug 2005, Ken Perl wrote: The password used to access a ftp server is stored in a text file, the perl program gets the password from the file, the pass it to the ftp server for logon, this is the background. The requirement is encrypt the password store in a more secure way, and

class regex

2005-08-29 Thread Brent Clark
Hi list I have im trying to enhance my regex skill. My questions is, would m/^p11[016]/io match like m/^(p110|p111|p116)/io Any tips or advice, would greatfully be appreciated. Kind Regards Brent Clark -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

open and edit file to prevent race conditions

2005-08-29 Thread Brent Clark
Hi List I have a scenario / debate if you wish with my colleague. The problem is I have to update a CSV file and the way I do it open the file while reading / editting it I then send it to a temp file, unlink the original and the rename the temp to the original file name (Baring in mind I do

PDF files listed in html as hyperlinks

2005-08-29 Thread sierrasurf
Hi All, I am trying to access a directory and print all files in a html doc as hyperlinks. Any and all help would be greatly appreciated. -r -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Posting all files in a directory as hyperlinks

2005-08-29 Thread sierrasurf
Hi All, I am trying to post the contents of a directory as HTML hyperlinks. The files are all PDF format (which should not matter much). thanks -r -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

RE: class regex

2005-08-29 Thread Charles K. Clarkson
Brent Clark mailto:[EMAIL PROTECTED] wrote: : I have im trying to enhance my regex skill. : : My questions is, would : : m/^p11[016]/io : : match like : : m/^(p110|p111|p116)/io Yes. : Any tips or advice, would greatfully be appreciated. Why not test you regex to see if it works?

RE: Posting all files in a directory as hyperlinks

2005-08-29 Thread Charles K. Clarkson
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: : I am trying to post the contents of a directory as HTML : hyperlinks. The files are all PDF format (which should not : matter much). When solving, you might try breaking a problem down into manageable pieces. I tend to think of each piece

Find first day of every week in a month

2005-08-29 Thread Anil Kumar, Malyala
I am new to perl and working for a small project... I need some help from you.. How to get all the first days of a week in a month. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Posting all files in a directory as hyperlinks

2005-08-29 Thread John Doe
[EMAIL PROTECTED] am Sonntag, 28. August 2005 18.08: Hi All, I am trying to post the contents of a directory as HTML hyperlinks. Great! The files are all PDF format (which should not matter much). Nice to know! joe (who likes apples) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: open and edit file to prevent race conditions

2005-08-29 Thread John W. Krahn
Brent Clark wrote: Hi List Hello, I have a scenario / debate if you wish with my colleague. The problem is I have to update a CSV file and the way I do it open the file while reading / editting it I then send it to a temp file, unlink the original and the rename the temp to the original

Re: class regex

2005-08-29 Thread John W. Krahn
Brent Clark wrote: Hi list Hello, I have im trying to enhance my regex skill. My questions is, would m/^p11[016]/io match like m/^(p110|p111|p116)/io Any tips or advice, would greatfully be appreciated. It appears that they would both match the same string although I would

Re: Find first day of every week in a month

2005-08-29 Thread John W. Krahn
Anil Kumar, Malyala wrote: I am new to perl and working for a small project... I need some help from you.. How to get all the first days of a week in a month. $ perl -le' # get every Monday for August 2005 use Time::Local; # start at noon August 1st my $day = 1; while ( eval { @date =

Re: Find first day of every week in a month

2005-08-29 Thread Owen Cook
On Mon, 29 Aug 2005, Anil Kumar, Malyala wrote: I am new to perl and working for a small project... I need some help from you.. How to get all the first days of a week in a month. There is a module Date::Calc and from that Day_of_Week $dow = Day_of_Week($year,$month,$day); Here is a

Re: encrypt the password stored in a file

2005-08-29 Thread JupiterHost.Net
Ken Perl wrote: The password used to access a ftp server is stored in a text file, the perl program gets the password from the file, the pass it to the ftp server for logon, this is the background. The requirement is encrypt the password store in a more secure way, and the perl program could

edit / seek woes

2005-08-29 Thread Brent Clark
Hi List This whole, using seek has kind put me off for the day. Would someone be so kind as to please over look me code and if possible, point out where I am going wrong. Kind Regards Brent Clark === open(HDATFILE, + $fileName.dat)

How check DBI version on the server?

2005-08-29 Thread Maxipoint Rep Office
How check DBI version on the server? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

system (cd ..)

2005-08-29 Thread Eliyah Kilada
Hi, It seems that the following code gives unexpected results: system (cd $dir_name); system (pwd); --- this prints the old directory name not the new one. In other words, the previous (cd) command hasn't taken its effect! Do anyone know why? Thanks And Best Regards, Eliyah -- To

Unsure how to start

2005-08-29 Thread Vince
Here's the situation: Some dude working in my company needs a program that does this- -There are over a 100 PDF files in some folder on a Mac Machine -The program to be written is supposed to invoke Adobe Acrobat Professional 7 (Mac version) and open each file from the directory -

RE: Date in perl

2005-08-29 Thread Gomez, Juan
a input like these : 20050829 and I need to change it to something like this : Aug 29 2005 but it still eludes me how to do that can anyone help me please? --- I normally don't just give out answers. Next time I'm sure someone will say do your own homework

RE: system (cd ..)

2005-08-29 Thread Bob Showalter
Eliyah Kilada wrote: Hi, It seems that the following code gives unexpected results: system (cd $dir_name); system (pwd); --- this prints the old directory name not the new one. In other words, the previous (cd) command hasn't taken its effect! Do anyone know why? Each call to system()

RE: How check DBI version on the server?

2005-08-29 Thread Bob Showalter
Maxipoint Rep Office wrote: How check DBI version on the server? perl -MDBI -le 'print $DBI::VERSION' -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Find first day of every week in a month

2005-08-29 Thread Jeff 'japhy' Pinyan
On Aug 29, Anil Kumar, Malyala said: How to get all the first days of a week in a month. How do you define the first day of a week? Do you mean I want to know the dates of every Sunday in a month? Please be specific. -- Jeff japhy Pinyan % How can we ever be the sold short or

Re: edit / seek woes

2005-08-29 Thread Jeff 'japhy' Pinyan
On Aug 29, Brent Clark said: Would someone be so kind as to please over look me code and if possible, point out where I am going wrong. Would you be so kind as to explain what happens with it that you didn't expect to happen? (Or what doesn't happen that you'd expected to happen.)

Re: open and edit file to prevent race conditions

2005-08-29 Thread Brent Clark
John W. Krahn wrote: Which operating system is this file on? Do you have ACLs or some such security to guaranty file locking? John Hi John Thanks for replying to my email. The file is a CSV file and so it will sit on Linux and sometimes a Win32 machine. In terms of the file locking, I

Re: Unsure how to start

2005-08-29 Thread Chris Devers
On Mon, 29 Aug 2005, Vince wrote: Someone supposedly told the dude that this script in Perl was easy to write! But, un/fortunately, I have no idea where to begin. Personally, I'd start with either... * the macosx@perl.org list, which specializes in this kind of thing * AppleScript, which

RE: open and edit file to prevent race conditions

2005-08-29 Thread Bob Showalter
Brent Clark wrote: Hi List I have a scenario / debate if you wish with my colleague. The problem is I have to update a CSV file and the way I do it open the file while reading / editting it I then send it to a temp file, unlink the original and the rename the temp to the original file

RE: Directories into arrays, again.

2005-08-29 Thread Daniel Kurtz
From: JupiterHost.Net [mailto:[EMAIL PROTECTED] Or weren't. So its working now then? What changed? Changes to the file system wrought in the shell are not visible to the calling Perl program until the shell's file handle is closed or otherwise reset. Simply had to close() the file handle

@INC

2005-08-29 Thread Andrew Stewart
In which order are the paths in @INC searched for modules? More specifically, if you have two nearly identical modules (where one is version 1.1 and the other 1.2, for example) in different areas in your @INC, and 'print joint(\n,@INC) generates the following list... /path/to/module (v1.1)

Re: system (cd ..)

2005-08-29 Thread Eliyah Kilada
Hi, How can I access a specific child process, such that I put all my system commands in one child process? Thanks alot Eliyah Bob Showalter wrote: Eliyah Kilada wrote: Hi, It seems that the following code gives unexpected results: system (cd $dir_name); system (pwd); --- this prints

Re: Find first day of every week in a month

2005-08-29 Thread Randal L. Schwartz
Anil == Anil Kumar [EMAIL PROTECTED] writes: Anil I am new to perl and working for a small project... Anil I need some help from you.. Anil How to get all the first days of a week in a month. Using the bloated Date::Manip: use Date::Manip; my @dates = ParseRecur(every sunday in aug

Re: encrypt the password stored in a file

2005-08-29 Thread Wiggins d'Anconia
JupiterHost.Net wrote: Ken Perl wrote: The password used to access a ftp server is stored in a text file, the perl program gets the password from the file, the pass it to the ftp server for logon, this is the background. The requirement is encrypt the password store in a more secure

Re: @INC

2005-08-29 Thread Jeff 'japhy' Pinyan
On Aug 29, Andrew Stewart said: ...which version will Perl end up ultimately loading at 'use module'? It goes in order of @INC (and its subdirectories), and uses the first one it finds. -- Jeff japhy Pinyan % How can we ever be the sold short or RPI Acacia Brother #734 % the

Re: system (cd ..)

2005-08-29 Thread Jeff 'japhy' Pinyan
On Aug 29, Eliyah Kilada said: How can I access a specific child process, such that I put all my system commands in one child process? It sounds like you want a shell script rather than a Perl program. Or, perhaps you should figure out how to do things via Perl rather than calling the

Re: encrypt the password stored in a file

2005-08-29 Thread Octavian Rasnita
From: Wiggins d'Anconia [EMAIL PROTECTED] Considering it is FTP who cares about permissions too. It is an insecure protocol to begin with, the password is sniffable during transmission anyways, really the words FTP and secure don't belong in a sentence together, unless they are included with

RE: encrypt the password stored in a file

2005-08-29 Thread Bob Showalter
Ken Perl wrote: The password used to access a ftp server is stored in a text file, the perl program gets the password from the file, the pass it to the ftp server for logon, this is the background. The requirement is encrypt the password store in a more secure way, and the perl program could

Parsing HTML

2005-08-29 Thread Scott Taylor
Hi, I suck at regex, but getting better. :) I'm probably reinventing the wheel here, but I tried to get along with HTML::Parser and just couldn't get it to do anything. To confusing, I think. I simply want to get a list or real words from an HTML string, minus all the HTML stuff. For

RE: Parsing HTML

2005-08-29 Thread Charles K. Clarkson
Scott Taylor mailto:[EMAIL PROTECTED] wrote: : Is there a better, maybe more eligant, way to do this? I don't : mind to use HTML::Parser if I could only figure out how. use HTML::TokeParser; my $html = q( This is a line of HTML:people write strange things herebr and hardly ever follow

windows registry

2005-08-29 Thread Tim Wolak
All, This is my first attempt at using perl to work with a windows system and need some help. I need to check for some registry entries made by a virus and remove them. Which is the best module for this and do you know of any example code I can look at? Thanks for the help, Tim -- To

RE: windows registry

2005-08-29 Thread Ryan Frantz
-Original Message- From: Tim Wolak [mailto:[EMAIL PROTECTED] Sent: Monday, August 29, 2005 2:08 PM To: beginners@perl.org Subject: windows registry All, This is my first attempt at using perl to work with a windows system and need some help. I need to check for some registry

RE: windows registry

2005-08-29 Thread Timothy Johnson
Check out Win32::TieRegistry. It makes quick work of most registry operations. # #Example use strict; use warnings; use Win32::TieRegistry (Delimiter = '/'); my $path = Software/Microsoft/Windows/CurrentVersion/Run; my @computers = qw(computerA computerB computerC);

Re: windows registry

2005-08-29 Thread Chris Devers
On Mon, 29 Aug 2005, Tim Wolak wrote: This is my first attempt at using perl to work with a windows system and need some help. I need to check for some registry entries made by a virus and remove them. Which is the best module for this and do you know of any example code I can look at?

RE: windows registry

2005-08-29 Thread Timothy Johnson
Start with a CPAN search. http://search.cpan.org/search?query=windows+registrymode=all I see several promising ones at the top of the list. Look them over and decide which you think should best meet your needs. Don't use either of the first two, they're not what you're looking for.

Re: system (cd ..)

2005-08-29 Thread Eliyah Kilada
Hi, - I agree with u that a shell script is more appropriate, but how I can write regular expressions in this way ? ;-) Regards, Eliyah Jeff 'japhy' Pinyan wrote: On Aug 29, Eliyah Kilada said: How can I access a specific child process, such that I put all my system commands in one

Perl CGI and URL rewriting returning source instead of execution

2005-08-29 Thread Blake Girardot
Hi, I have a perl cgi application, not mod_perl, but an actual .cgi application running under apache on OS X. As many web apps, it makes use of some long get requests with variable labels and values. For example: http://server.com/cgi-bin/app.cgi?t=new.htmc=jlpnew.html I wrote a working

Re: Perl CGI and URL rewriting returning source instead of execution

2005-08-29 Thread Philipp Traeder
On Monday 29 August 2005 19:20, Blake Girardot wrote: I have a perl cgi application, not mod_perl, but an actual .cgi application running under apache on OS X. As many web apps, it makes use of some long get requests with variable labels and values. For example:

Re: encrypt the password stored in a file

2005-08-29 Thread JupiterHost.Net
Maybe the protocol is SFTP and the transmission is secure... *transmission* maybe not source code, which is the OP's issue... By the way, isn't there a perl module that can crypt a string using a password (which can be used to decrypt it back)? Yes but then you have to store the cypher or

RE: Find first day of every week in a month

2005-08-29 Thread Anil Kumar, Malyala
Hi, I want the first day of every week in a month... Example consider Sep 2005 So I want 1 Sep 2005 (which is the first day of 1st week in Sep) 5 Sep 2005 (which is the first day of 2nd week in Sep) 12 Sep 2005 (first day of 3rd week in sep) 19 Sep 2005 (first day of 4th week in Sep) 26 Sep

RE: Find first day of every week in a month

2005-08-29 Thread Chris Devers
On Tue, 30 Aug 2005, Anil Kumar, Malyala wrote: I want the first day of every week in a month... Example consider Sep 2005 So I want 1 Sep 2005 (which is the first day of 1st week in Sep) 5 Sep 2005 (which is the first day of 2nd week in Sep) 12 Sep 2005 (first day of 3rd week in sep)