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 i

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 20

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: 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: > > http://server.com/cgi-

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.htm&c=jlpnew.html I wrote a working

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 chil

RE: windows registry

2005-08-29 Thread Timothy Johnson
>Start with a CPAN search. >http://search.cpan.org/search?query=windows+registry&mode=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. Tie:

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
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 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

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 unsubscri

RE: Parsing HTML

2005-08-29 Thread Charles K. Clarkson
Scott Taylor 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 here and hardly ever follow

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 example:

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 co

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

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 shell

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: 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

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 s

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 pri

@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: 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 h

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 fi

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 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 j

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.) open(HD

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

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]

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

RE: Date in perl

2005-08-29 Thread Gomez, Juan
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 &q

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 -Onc

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 u

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]

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"

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 st

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

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: 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 althoug

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 ori

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 ad

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]

RE: Posting all files in a directory as hyperlinks

2005-08-29 Thread Charles K. Clarkson
[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

RE: class regex

2005-08-29 Thread Charles K. Clarkson
Brent Clark 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?

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]

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]

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 f

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 P