RE: Mail App

2004-07-07 Thread NYIMI Jose (BMB)
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 07, 2004 1:18 AM > To: [EMAIL PROTECTED] > Subject: Mail App > > > Hello all, > > I have written first in PHP and then in Java an app to fetch > attachments from a remote mailbox. > > I

Re: Cool construct

2004-07-07 Thread Gunnar Hjalmarsson
Bryan Harris wrote: I found this construct in the Perl Cookbook: $Current_Screen = param(".State") || "Default"; I thought it was really cool because if the value of param(".State") comes back undefined, the $Current_Screen variable gets set to "Default". So the other day I wanted to do something s

"Hash as object attribute"-Problem with "use strict"

2004-07-07 Thread Luis
Hi, I have a problem. The following code results a "Can't use string ("1") as a HASH ref while "strict refs" in use at TestObject.pm line 21." Error if I include the "use strict" command. I don't understand why this error occures. Any suggestions?? First the object (TestObject.pm): ###

Cool construct

2004-07-07 Thread Bryan Harris
I found this construct in the Perl Cookbook: $Current_Screen = param(".State") || "Default"; I thought it was really cool because if the value of param(".State") comes back undefined, the $Current_Screen variable gets set to "Default". So the other day I wanted to do something similar: @somea

Dates are killing me..

2004-07-07 Thread Chris Puccio
Hi Guys, I'm having a real hard time trying to figure this out.. There are tons of modules on dates, etc, but I can't seem to find one to do what I need. I have one date, for example: 2004-07-07. I need to take that date, get Monday's date and Sunday's date where 2004-07-07 is between. Any s

Converting ASCII extended symbols to image

2004-07-07 Thread Kelvin Wu
i'm having troubles converting ascii extended symbols, for exaple one of them looks like that '=DC' in win, but in unicode, or old ibm dos extended ascii its black box. most of ascii art using this and sign like that. what i'd like to do is create dynamic .png image with content of some ascii file.

perl POE

2004-07-07 Thread Anish Mehta
Hello Everyone, Does anyone knows about some good links on PERL POE, how it allows Perl code to make asynchronous, non-blocking I/O calls and handle those I/O calls on the basis of Event Driven model and Event Queues. Waiting for your suggestions. Thanks & Regards, A+ -- To unsubscribe, e-mail: [EM

Re: Dates are killing me..

2004-07-07 Thread Johan Viklund
Hi Use the following methods from the Date::Calc module from CPAN: Week_of_Year: ($week,$year) = Week_of_Year($year,$month,$day); Monday_of_Week: ($year,$month,$day) = Monday_of_Week($week,$year); Add_Delta_Days: ($year,$month,$day) = Add_Delta_Days($year,$month,$day, $Dd); Shouldn't be t

Re: "Hash as object attribute"-Problem with "use strict"

2004-07-07 Thread Luis
Oh, I forgot to write down the line numbers. Line 21 is $self->{friends}->{'Juergen'} = "Sonja"; in the "TestObject.pm". So it's the first access to the hash-array. I'm searching the problem since some days. So I would be happy if anyone could explain the problem with the hash. Thanks in advan

Running Perl CGI MS XP System

2004-07-07 Thread Jerry Preston
Hi! I am looking for a way to run Active Perl CGI on my PC that is setup on Windows XP. I have installed Apache and I am trying to figure out how to set it up the Virtual Host mode to run Perl script with CGI like I do on my work SUN station. Any ideas on how do this or is there a better way? T

Re: Cool construct

2004-07-07 Thread John W . Krahn
On Tuesday 06 July 2004 23:49, Bryan Harris wrote: > > I found this construct in the Perl Cookbook: > > $Current_Screen = param(".State") || "Default"; > > I thought it was really cool because if the value of param(".State") > comes back undefined, the $Current_Screen variable gets set to > "Defaul

Re: Running Perl CGI MS XP System

2004-07-07 Thread Philipp Traeder
On Wednesday 07 July 2004 12:15, Jerry Preston wrote: > I am looking for a way to run Active Perl CGI on my PC that is setup on > Windows XP. I have installed Apache and I am trying to figure out how > to > set it up the Virtual Host mode to run Perl script with CGI like I do on > my > work SUN st

Re: perl POE

2004-07-07 Thread Ricardo SIGNES
* Anish Mehta <[EMAIL PROTECTED]> [2004-07-07T04:49:30] > Does anyone knows about some good links on PERL POE, how it allows Perl > code to make asynchronous, non-blocking I/O calls and handle those I/O > calls on the basis of Event Driven model and Event Queues. poe.perl.org or, of course, the c

using tr

2004-07-07 Thread Cinzia Sala
Hi, I am a really new perl beginner and I would like to have some help. I would like to transform a string like : MSDDIDWLHSRRGVCK in a identical string, but with two spaces between each letter: M S D D I D W L H S R R G V C K I have tried with tr $string =~ tr/ABCDEFGHIJKLMNOPQRSTUV

RE: Dates are killing me..

2004-07-07 Thread Bakken, Luke
> Hi Guys, > > I'm having a real hard time trying to figure this out.. > > There are tons of modules on dates, etc, but I can't seem to > find one to do > what I need. > > I have one date, for example: 2004-07-07. > > I need to take that date, get Monday's date and Sunday's date > where 2004

Re: using tr

2004-07-07 Thread Ricardo SIGNES
* Cinzia Sala <[EMAIL PROTECTED]> [2004-07-07T09:35:42] > I would like to transform a string like : > > MSDDIDWLHSRRGVCK > > in a identical string, but with two spaces between each letter: > You wouldn't use tr/// for this. There are two simple ways: $string =~ s/(.)(?!\Z)/$1 /g; # replace

RE: Split the line with "|" character

2004-07-07 Thread Jeff 'japhy' Pinyan
On Jul 7, [EMAIL PROTECTED] said: >Try using in the following way, >$DELIM_PIPE = '|'; >@data = split /[$DELIM_COMMA]/,$line; You used different variable names. And this won't work in all cases. >@data = split /['|']/,$line; That splits on a | or a ' character, which is not is intended. -- J

Re: Split the line with "|" character

2004-07-07 Thread Jeff 'japhy' Pinyan
On Jul 6, Wil said: > @data = split ("\|",$line); The double-quoted string "\|" is equal to "|". You have gained nothing with your backslash, because it was used by the double quotes, and never got to the regex engine. | is a regex metacharacter. split() takes a regex as its first argumen

Re: "Hash as object attribute"-Problem with "use strict"

2004-07-07 Thread Jeff 'japhy' Pinyan
On Jul 7, Luis said: >"Can't use string ("1") as a HASH ref while "strict refs" in use at >TestObject.pm line 21." > sub insertFriends { > my $self = @_; The problem is that $self is not what you think it is. You have stored the number of elements in @_ into $self. You meant my ($sel

RE: Split the line with "|" character

2004-07-07 Thread Bob Showalter
Wil wrote: > @data = split ("\|",$line); The double quotes are eating the backslash before split sees it. split() treats the first arg as a regex (even if you pass it as a string), and the pipe char needs to be escaped with a backslash in order to be treated as a literal character. What you'

Re: output

2004-07-07 Thread DBSMITH
yes this is true, but I really did not understand them so I figured ask again to see if anyone else had more ideas. I will continue to try the Tie::File module b/c this looks to be the most promising. thanks again, derek Gunnar Hjalmarsson <[EMAIL PROTECTED]> 07/06/2004 08:16 PM

Re: output

2004-07-07 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: Gunnar Hjalmarsson wrote: [EMAIL PROTECTED] wrote: I will have a file that contains anywhere from 1-40 strings, but I would like 4 E strings per line then a \n This seems to be the same problem as you posted about a few days ago: http://www.mail-archive.com/beginners%40per

Trying to locate module in parallel directory

2004-07-07 Thread Ron Goral
Greetings - I am having trouble locating and using modules that are not in the current directory of a cgi script. For this test, I know the directory structure looks like this: cgi-bin/test/test.cgi cgi-bin/lib/DGStanLib.pm However, this script and the required modules may be used by others and

Re: Trying to locate module in parallel directory

2004-07-07 Thread Wiggins d Anconia
> Greetings - > > I am having trouble locating and using modules that are not in the current > directory of a cgi script. For this test, I know the directory structure > looks like this: > > cgi-bin/test/test.cgi > cgi-bin/lib/DGStanLib.pm > > However, this script and the required modules may b

RE: Trying to locate module in parallel directory

2004-07-07 Thread Bob Showalter
Ron Goral wrote: > Greetings - > > I am having trouble locating and using modules that are not in the > current directory of a cgi script. For this test, I know the > directory structure looks like this: > > cgi-bin/test/test.cgi > cgi-bin/lib/DGStanLib.pm Why not the straightforward: u

Re: Trying to locate module in parallel directory

2004-07-07 Thread Gunnar Hjalmarsson
Ron Goral wrote: I am having trouble locating and using modules that are not in the current directory of a cgi script. For this test, I know the directory structure looks like this: cgi-bin/test/test.cgi cgi-bin/lib/DGStanLib.pm However, this script and the required modules may be used by others a

Re: Cool construct

2004-07-07 Thread Bryan Harris
> On Tuesday 06 July 2004 23:49, Bryan Harris wrote: >> >> I found this construct in the Perl Cookbook: >> >> $Current_Screen = param(".State") || "Default"; >> >> I thought it was really cool because if the value of param(".State") >> comes back undefined, the $Current_Screen variable gets set

RE: Trying to locate module in parallel directory

2004-07-07 Thread Ron Goral
> Ron Goral wrote: > > Greetings - > > > > I am having trouble locating and using modules that are not in the > > current directory of a cgi script. For this test, I know the > > directory structure looks like this: > > > > cgi-bin/test/test.cgi > > cgi-bin/lib/DGStanLib.pm > > From: Bob Showalte

RE: Form Validation

2004-07-07 Thread John Pretti
-Original Message- From: JupiterHost.Net [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 3:17 PM To: John Pretti Cc: [EMAIL PROTECTED] Subject: Re: Form Validation John Pretti wrote: > Hi all, Hello, > What is the best way to validate a form element? I am using the following >

Re: Form Validation

2004-07-07 Thread JupiterHost.Net
John Pretti wrote: -Original Message- From: JupiterHost.Net [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 3:17 PM To: John Pretti Cc: [EMAIL PROTECTED] Subject: Re: Form Validation John Pretti wrote: Hi all, Hello, What is the best way to validate a form element? I am using

Re: using tr

2004-07-07 Thread Flemming Greve Skovengaard
Ricardo SIGNES wrote: * Cinzia Sala <[EMAIL PROTECTED]> [2004-07-07T09:35:42] I would like to transform a string like : MSDDIDWLHSRRGVCK in a identical string, but with two spaces between each letter: You wouldn't use tr/// for this. There are two simple ways: $string =~ s/(.)(?!\Z)/$1 /g; # re

Re: GnuPG::Interface hangs while decrypting files over 61068 bytes

2004-07-07 Thread Wiggins d Anconia
> > > On Tue, 2004-07-06 at 14:41, Wiggins d Anconia wrote: > > > > 'direct' is slightly different, I am not sure there is a way to do this > > in the options to G::I, but should instead be done directly to your > > handles, I am also not sure of a way to specify non-buffered during > > handle i

Context Sensitive Help?

2004-07-07 Thread Deborah Dominey
Hello all. This is my first time back at Perl-Beginners in about a year. Is there a fairly easy way to create context-sensitive help using perl? I've just been asked to create documentation for a web-based software application (I think it was developed in Perl). I know I'm going to create traditio

Re: Form Validation

2004-07-07 Thread Gunnar Hjalmarsson
John Pretti wrote: OK now I am really lost. Here is what I am not following, the first time the form is run it will have no parameters so the form will just be presented; however if someone clicks promote without selecting a directory it will still be blank, so how can perl determine when the promo

Re: Problem installing Net::DNS

2004-07-07 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Kevin W. Gagel) writes: >I can't seem to get Net::DNS installed. After it runs its tests it reports: >Failed 1/19 test scripts, 94.74% okay. 5/816 subtests failed, 99.39% okay. >make: *** [test_dynamic] Error 2 > /usr/bin/make test -- NOT OK >Run

Re: Dates are killing me..

2004-07-07 Thread Chris Puccio
Luke, Thanks!!! Works exactly as needed! -c On Wednesday 07 July 2004 09:41 am, Bakken, Luke wrote: > > Hi Guys, > > > > I'm having a real hard time trying to figure this out.. > > > > There are tons of modules on dates, etc, but I can't seem to > > find one to do > > what I need. > > > > I have

DBM Files

2004-07-07 Thread BOLCATO CHRIS (esm1cmb)
Hello all, Which DBM modules should be used or is most common, compatible, recommended? Would this be a good choice for sharing variable data with multiple perl scripts? Kind of a shared variable database? Chris

Re: DBM Files

2004-07-07 Thread Gunnar Hjalmarsson
Bolcato Chris wrote: Which DBM modules should be used or is most common, compatible, recommended? There is no simple answer to that question. See for instance the section "Standard Modules" in "perldoc perlport". In CGI scripts, where I care about portability and the databases are small, I prefer S

Re: Problem installing Net::DNS

2004-07-07 Thread Kevin W. Gagel
- Original Message Follows - Date: 7 Jul 2004 14:36:00 - > In article <[EMAIL PROTECTED]>, > >I can't seem to get Net::DNS installed. After it runs its tests it reports: > >Failed 1/19 test scripts, 94.74% okay. 5/816 subtests failed, 99.39% okay. > >make: *** [test_dynamic] Error 2 > >

Re: Help with @INC

2004-07-07 Thread Mame Mbodji
Have not received any response yet. Any idea? Issa Mbodji wrote: > > I have installed Oracle which comes with an Apache server. Now I have it > disabled so that I can use my old Apache server that I had installed a > while ago. I am trying to use LWP::Simple which I intalled too a while > ago, bu

Creating or renaming a file with the creation date included......

2004-07-07 Thread jason corbett
How can i rename a file or create a file with the date included? For example, I want to automate and run reports and save the reports under the date of when they were created i.e. JC07082004. Whats the easiest way to do this? Thanks, JC

RE: Creating or renaming a file with the creation date included......

2004-07-07 Thread Wagner, David --- Senior Programmer Analyst --- WGO
jason corbett wrote: > How can i rename a file or create a file with the date included? For > example, I want to automate and run reports and save the reports > under the date of when they were created i.e. JC07082004. Whats the > easiest way to do this? > > Thanks, > JC Using localtim

Re: Dates are killing me..

2004-07-07 Thread Chris Charley
Like Luke's solution, but using Date::Simple which comes with the standard distro of Perl. #!/usr/bin/perl use strict; use warnings; use Date::Calc qw/ Day_of_Week Add_Delta_Days /; my @days = (undef, qw/ Mon Tue Wed Thur Fri Sat Sun /); if ($ARGV[0] !~ /^\d{4}-\d{2}-\d{2}$/) { die "Date given

RE: Creating or renaming a file with the creation date included......

2004-07-07 Thread Wiggins d Anconia
> jason corbett wrote: > > How can i rename a file or create a file with the date included? For > > example, I want to automate and run reports and save the reports > > under the date of when they were created i.e. JC07082004. Whats the > > easiest way to do this? > > > > Thanks, > > JC > >

RE: Form Validation

2004-07-07 Thread John Pretti
-Original Message- From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 07, 2004 11:47 AM To: [EMAIL PROTECTED] Subject: Re: Form Validation John Pretti wrote: > OK now I am really lost. Here is what I am not following, the first > time the form is run it will have n

A simple text or GUI-based menu script

2004-07-07 Thread William . Ampeh
Hello, I am finally done with my 508 automation project. Thanks to everyone who responded to my mail, especially Jenda Krynicky. I am finally able to take any "structured" pdf table and convert it to a "screen readable HTML" file format. The end of one project marks the beginning of anothe

RE: Creating or renaming a file with the creation date included......

2004-07-07 Thread jason corbett
thanks. I wasn't aware of the rename function. As far as converting to MMDD, can that be done on the fly using localtime()? I am reading online docs now, but nothing talks about it done on the fly i.e. when I call the function up. If not I will work on it some more and follow up with whateve

Re: Dates are killing me..

2004-07-07 Thread Jeff 'japhy' Pinyan
On Jul 7, Chris Charley said: >Like Luke's solution, but using Date::Simple which comes with the standard >distro of Perl. > >#!/usr/bin/perl >use strict; >use warnings; >use Date::Calc qw/ Day_of_Week Add_Delta_Days /; This uses Date::Calc, not Date::Simple... and neither of those came with *my*

${DBI::errstr} vs $DBI::errstr

2004-07-07 Thread perl.org
If my Perl contains ${DBI::errstr} I get warnings like this: Ambiguous use of ${DBI::errstr} resolved to $DBI::errstr at (eval 20) line 284. If my Perl contains $DBI::errstr (without the braces) I don't get these warnings. Is there an explanation for this? When I use things like ${File::Find::n

RE: Creating or renaming a file with the creation date included......

2004-07-07 Thread Wiggins d Anconia
Please bottom post > > thanks. I wasn't aware of the rename function. As far as converting to MMDD, can that be done on the fly using localtime()? I am reading online docs now, but nothing talks about it done on the fly i.e. when I call the function up. If not I will work on it some more

Re: Creating or renaming a file with the creation date included......

2004-07-07 Thread Randal L. Schwartz
> "Jason" == Jason Corbett <[EMAIL PROTECTED]> writes: Jason> How can i rename a file or create a file with the date Jason> included? For example, I want to automate and run reports and Jason> save the reports under the date of when they were created Jason> i.e. JC07082004. Whats the easiest w