Re: lowercase

2003-10-24 Thread perl
or you can do $stri=lc($stri); -rkl > try this: > $stri =~ tr/A-Z/a-z/; > > yi > > --- Andre Chaves Mascarenhas <[EMAIL PROTECTED]> wrote: >> Hi if i have an string lets say >> $stri="Joana Prado"; >> How do i transformm it into >> "joana prado" >> (all lowercase) >> Thanks >> > > > _

Re: CGI::Session param help

2003-10-24 Thread perl
Thanks, I was reading the doc on the cpan site and it wasn't so obvious. But the perldoc CGI::Session showed how to delete so obviously. That's after I figured out how to use perldoc to get to Session. Again, thanks for the patient. > On Oct 24, [EMAIL PROTECTED] said: > >>Can someone tell me h

CGI:Session param dbh

2003-10-24 Thread perl
If I store a dbh in a session as in, $session->param("DB",$dbh), what happen when the session expire due to expire setting? Will the dbh still be in memory or cleaned up? -thanks - eMail solutions by http://www.swanmail.com -- To unsubscribe, e-mail: [

Re: 'rmm' (or 'trash') script

2003-10-24 Thread david
Kevin Pfeiffer wrote: > Hi all, > > I just took another look at an exercise I wrote a couple months ago and > fleshed it out a bit. It is a commandline "trashcan" program which I > actually use. Instead of typing 'rm' I almost always use 'rmm' now. > > It's meant to be used in a "friendly" envir

Re: Parse and Compare Text Files

2003-10-24 Thread Wiggins d'Anconia
Mike M wrote: Hi, I'm new to Perl and have what I hope is a simple question: I have a Perl script that parses a log file from our proxy server and reformats it to a more easily readable space-delimited text file. I also have another file that has a categorized list of internet domains, also spac

'rmm' (or 'trash') script

2003-10-24 Thread Kevin Pfeiffer
Hi all, I just took another look at an exercise I wrote a couple months ago and fleshed it out a bit. It is a commandline "trashcan" program which I actually use. Instead of typing 'rm' I almost always use 'rmm' now. It's meant to be used in a "friendly" environment, nonetheless, if anyone sees a

Re: Visual Perl

2003-10-24 Thread Beau E. Cox
On Friday 24 October 2003 05:47 am, Victor Medrano wrote: > I'm Really interesting in this software , let me know if you find > A visual perl . > > Regards > > -Original Message- > From: Ned Cunningham [mailto:[EMAIL PROTECTED] > Sent: Friday, October 24, 2003 12:00 PM > To: [EMAIL PROTECTE

Re: What is the best way to set options in a constructor

2003-10-24 Thread R. Joseph Newton
Sorry, this was clumsy and graceless: "R. Joseph Newton" wrote: > sub new { > ... > }else { > $self->initialize(@_); >} >return $self; > } > It works much better without the else here. Inializing with the remainder of the parameter list allows ad-hoc expansion of the object at

Re: lowercase

2003-10-24 Thread George Schlossnagle
Or $str = lc($str); On Friday, October 24, 2003, at 11:23 AM, Yi Chu wrote: try this: $stri =~ tr/A-Z/a-z/; yi --- Andre Chaves Mascarenhas <[EMAIL PROTECTED]> wrote: Hi if i have an string lets say $stri="Joana Prado"; How do i transformm it into "joana prado" (all lowercase) Thanks ___

Re: lowercase

2003-10-24 Thread Yi Chu
try this: $stri =~ tr/A-Z/a-z/; yi --- Andre Chaves Mascarenhas <[EMAIL PROTECTED]> wrote: > Hi if i have an string lets say > $stri="Joana Prado"; > How do i transformm it into > "joana prado" > (all lowercase) > Thanks > __ Do you Yahoo!? The New Yahoo! Shopp

Parse and Compare Text Files

2003-10-24 Thread Mike M
Hi, I'm new to Perl and have what I hope is a simple question: I have a Perl script that parses a log file from our proxy server and reformats it to a more easily readable space-delimited text file. I also have another file that has a categorized list of internet domains, also space-delimited.

RE: Visual Perl

2003-10-24 Thread Bob Showalter
Ned Cunningham wrote: > Tk does not come with the standard > Active Perl load. Hmm, it did with mine. Anyway "ppm install Tk" should do the trick. > > If I make an executable with perlapp, would I need TK loaded on the > target system? Nope. PerlApp is cool! -- To unsubscribe, e-mail: [EMAI

Success! RE: No dice;details . RE: run in background from qx// ?

2003-10-24 Thread McMahon, Chris
Thank you Stefan, that works fine! The camel book is not at all clear for system/exec syntax... -C -Original Message- From: Stefan Lidman [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 2:43 PM To: [EMAIL PROTECTED] Subject: Re: No dice;details . RE: run in backgro

RE: Passing and returning values from another script?

2003-10-24 Thread Mark Weisman
I'm not sure, however I put the script mods in that you suggested, and my $output is the word "SCRIPT", I would like clarification on line 2 if you would please? >my $output = join("", SCRIPT); Sincerely in Christ, Mark-Nathaniel Weisman President / Owner Outland Domain Group Anchorage, Alaska

Re: Rename a file

2003-10-24 Thread Casey West
It was Friday, October 24, 2003 when Chinku Simon took the soap box, saying: : Hi, : : Is there any inbuilt command by which we can rename a file (in WinNT) Hi there. I'd give the rename() function a shot. :-) perldoc -f rename rename OLDNAME,NEWNAME Changes the name of

RE: Rename a file

2003-10-24 Thread Tim Johnson
Yes. There is a function called rename that will do just that. Go to a command prompt and type: C:\> perldoc -f rename -Original Message- From: Chinku Simon [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 9:55 AM To: [EMAIL PROTECTED] Subject: Rename a file Hi, Is there

Rename a file

2003-10-24 Thread Chinku Simon
Hi, Is there any inbuilt command by which we can rename a file (in WinNT) Regards, Chinku __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: Visual Perl

2003-10-24 Thread R. Joseph Newton
Ned Cunningham wrote: > Hi Gurus, > > I just finished up with a Perl program using Win32::Console on a Windoze NT system, > Perl ver 5.6.1. > > I was wondering why with all the power of Perl, and all the functionality it has, > why I cant make a pretty input window? You wonderment has a fallaci

RE: Visual Perl

2003-10-24 Thread Ned Cunningham
Oh cool. Sorry to ask more help, but I must. What module should I donwload? Tk does not come with the standard Active Perl load. If I make an executable with perlapp, would I need TK loaded on the target system? TIAA Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Pa

RE: Visual Perl

2003-10-24 Thread NIPP, SCOTT V (SBCSI)
You are looking for the TK module for Perl. Perl/TK allows you to create windows and everything that goes along with them. Scott Nipp Phone: (214) 858-1289 E-mail: [EMAIL PROTECTED] Web: http:\\ldsa.sbcld.sbc.com -Original Message- From: Ned Cunningham [mailto:[EMAIL PROTEC

RE: Visual Perl

2003-10-24 Thread Bob Showalter
Ned Cunningham wrote: > Hi Gurus, > > I just finished up with a Perl program using Win32::Console > on a Windoze NT system, Perl ver 5.6.1. > > I was wondering why with all the power of Perl, and all the > functionality it has, why I cant make a pretty input window? What's a pretty input window?

RE: Visual Perl

2003-10-24 Thread Victor Medrano
I'm Really interesting in this software , let me know if you find A visual perl . Regards -Original Message- From: Ned Cunningham [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 12:00 PM To: [EMAIL PROTECTED] Subject: Visual Perl Hi Gurus, I just finished up with a Perl progr

Visual Perl

2003-10-24 Thread Ned Cunningham
Hi Gurus, I just finished up with a Perl program using Win32::Console on a Windoze NT system, Perl ver 5.6.1. I was wondering why with all the power of Perl, and all the functionality it has, why I cant make a pretty input window? Also, Does anyone use Visual Perl? What does it offer if any,

Re: comparison between two regexes?

2003-10-24 Thread Jeff 'japhy' Pinyan
On Oct 24, David Garamond said: >- whether R1 is "a subset of" R2, i.e. all strings that match R1 will >also always match R2, but not necessarily the other way around; > >- whether R1 is "equivalent" or "equal" to R2, i.e. all strings that >match R1 will also always match R2, and all strings that

Re: CGI::Session param help

2003-10-24 Thread Jeff 'japhy' Pinyan
On Oct 24, [EMAIL PROTECTED] said: >Can someone tell me how to delete a parameter in $session->param("BOGUS") >that was set? $session->delete("BOGUS"); Read 'perldoc CGI' for more details. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734

Re: comparison between two regexes?

2003-10-24 Thread David Garamond
I wrote: Given two regex patterns R1 and R2, is it possible at all to determine/calculate: - whether R1 is "a subset of" R2, i.e. all strings that match R1 will also always match R2, but not necessarily the other way around; - whether R1 is "equivalent" or "equal" to R2, i.e. all strings that

comparison between two regexes?

2003-10-24 Thread David Garamond
Given two regex patterns R1 and R2, is it possible at all to determine/calculate: - whether R1 is "a subset of" R2, i.e. all strings that match R1 will also always match R2, but not necessarily the other way around; - whether R1 is "equivalent" or "equal" to R2, i.e. all strings that match R1

RE: Passing and returning values from another script?

2003-10-24 Thread Marcos . Rebelo
I'm not sure but open (SCRIPT, "./scriptname.pl password|"); my $output = join("", SCRIPT); close SCRIPT shall work; -Original Message- From: Mark Weisman [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 9:53 AM To: [EMAIL PROTECTED] Subject: Passing and returning values from a

CGI::Session param help

2003-10-24 Thread perl
Can someone tell me how to delete a parameter in $session->param("BOGUS") that was set? $session->param("BOGUS", "hello"); Does this actually removes or just set a null value? $session->("BOGUS", undef); I want to remove or delete it completely. -thanks --

Re: What is the best way to set options in a constructor

2003-10-24 Thread R. Joseph Newton
Wiggins d Anconia wrote: > > my $new_obj = ref($obj)->new; Ouch! Unfortunately, I can well imagine someone trying to use that, too. > I do have to differ with the opinion about new, if you really are just > constructing an object then to me it still makes sense as a name, but in > the case of D

Passing and returning values from another script?

2003-10-24 Thread Mark Weisman
I would like to encrypt textbox provided passwords. I have a script that I found on the web, and it asks that I call the script and provide the word afterwards (i.e. ./scriptname.pl password). The script then provides me the encrypted password to the screen. I am wondering how I can pass t

Re: What is the best way to set options in a constructor

2003-10-24 Thread R. Joseph Newton
Steve Grazzini wrote: > On Thu, Oct 23, 2003 at 06:48:29AM -0700, R. Joseph Newton wrote: > > "Randal L. Schwartz" wrote: > > > > "Dan" == Dan Anderson <[EMAIL PROTECTED]> writes: > > > > > > Dan> my $class = ref($proto) || $proto; > > > > > > Don't do this! > > > > I'm still a little mystif