Can't locate object method "export_to_level" via package "IO::Tty::Constant"

2006-04-28 Thread Stuart Weston
I am using Red Hat 9.0, it seems to have perl 5.8.0 installed, I am trying to get a perl package call difwrap running and keep getting the error below. I have been to CPAN and installed IO-Tty-1.02. Any one any ideas how to fix it up and get it running ? Can't locate object method "export_to_le

Re: Portal Authentication

2006-04-28 Thread Chico
I want to use PERL to power a web portal that handles the authentication of users (not IIS or Windows), that is database driven. I realize this means keeping state information (for which I will use CGI.pm), and all the jazz... I just need to be pointed in the right direction, and havent found a

Re: splitting text that contains an encrypted value

2006-04-28 Thread John W. Krahn
Rance Hall wrote: > here is the prelim setup: > > my $delimiter = ";;;"; > my $teststring = "name;;;encryptedpassword;;;date"; > > my @userdetails = split($delimiter, $teststring); > > here is the goal: > > I would like to find a delimiter value that I can use to both create and > read from a f

Re: splitting text that contains an encrypted value

2006-04-28 Thread Mr. Shawn H. Corey
On Fri, 2006-28-04 at 14:16 -0500, Rance Hall wrote: > here is the prelim setup: > > my $delimiter = ";;;"; > my $teststring = "name;;;encryptedpassword;;;date"; > > my @userdetails = split($delimiter, $teststring); > > here is the goal: > > I would like to find a delimiter value that I can use

splitting text that contains an encrypted value

2006-04-28 Thread Rance Hall
here is the prelim setup: my $delimiter = ";;;"; my $teststring = "name;;;encryptedpassword;;;date"; my @userdetails = split($delimiter, $teststring); here is the goal: I would like to find a delimiter value that I can use to both create and read from a flat-file database where splitting on t

Excuses (WAS: Chomp method)

2006-04-28 Thread Mr. Shawn H. Corey
On Fri, 2006-28-04 at 10:28 -0600, Chad Perrin wrote: > Ironic -- isn't it? Repetitions of "that", no apostrophe in "work's". > Actually, I think that's where I got that extraneous apostrophe that > snuck into the word "its" in another email of mine a few minutes ago. I > don't know if I stole it

Re: General Perl/Web questions

2006-04-28 Thread Chad Perrin
On Fri, Apr 28, 2006 at 10:21:43AM -0400, Leonid Grinberg wrote: > > Alternatively, you can make a common_functs.pl file, where each one of > the above actions is performed in a subroutine (the file should only > have subroutines, and should not do anything outside of them (except > like use stric

Re: Chomp method

2006-04-28 Thread Chad Perrin
On Fri, Apr 28, 2006 at 11:05:23AM -0400, Mr. Shawn H. Corey wrote: > On Fri, 2006-28-04 at 07:33 -0700, Randal L. Schwartz wrote: > > > ""Mr" == "Mr Shawn H Corey" <[EMAIL PROTECTED]> writes: > > > > "Mr> Everyone should compliment their reading with experimentation and their > > "Mr> experim

Re: problem with whitespace not splitting on split.

2006-04-28 Thread Chad Perrin
On Fri, Apr 28, 2006 at 10:20:52AM -0600, Chad Perrin wrote: > > > > > The *only* way you lose functionality by rewriting reply-to is if you > > also munge from so it looks like the massage came from the list. I've > > know lists that do that, but this isn't one of them. > > That would be a chan

Re: Modifiaction time of file

2006-04-28 Thread Mr. Shawn H. Corey
On Fri, 2006-28-04 at 08:51 -0700, anu p wrote: > Hi, > > I have a requirement where I need to look at the age > of file, if it's older than 2 days, I should remove > it. > I am trying to use the '-M ' filehandle in my script, > it does not work. > > I get the following error > Use of uninit

Re: problem with whitespace not splitting on split.

2006-04-28 Thread Chad Perrin
On Fri, Apr 28, 2006 at 09:48:01AM -0400, Jay Savage wrote: > On 4/27/06, Chad Perrin <[EMAIL PROTECTED]> wrote: > > >I tend to agree with the principles on which you base your opinion, but > >I don't think they're properly applied here, necessarily. I've never > >been subscribed to any other int

Re: Modifiaction time of file

2006-04-28 Thread John W. Krahn
anu p wrote: > Hi, Hello, > I have a requirement where I need to look at the age > of file, if it's older than 2 days, I should remove > it. > I am trying to use the '-M ' filehandle in my script, > it does not work. > > I get the following error > Use of uninitialized value in numeric gt (

RE: Modifiaction time of file

2006-04-28 Thread Ryan Frantz
> -Original Message- > From: anu p [mailto:[EMAIL PROTECTED] > Sent: Friday, April 28, 2006 11:51 AM > To: beginners@perl.org > Subject: Modifiaction time of file > > Hi, > > I have a requirement where I need to look at the age > of file, if it's older than 2 days, I should remove > i

Modifiaction time of file

2006-04-28 Thread anu p
Hi, I have a requirement where I need to look at the age of file, if it's older than 2 days, I should remove it. I am trying to use the '-M ' filehandle in my script, it does not work. I get the following error Use of uninitialized value in numeric gt (>) at ./temp_age.pl line 12. #!/usr/b

Re: looping over an array of hashes

2006-04-28 Thread Mr. Shawn H. Corey
On Fri, 2006-28-04 at 15:40 +0100, Graeme McLaren wrote: > Hi all, I need to loop over an array of hashes and assign a new hashref if a > condition is met: > > I have a scalar which contains an array of hashes: > > $locations = [ > { > 'location_name' => 'Fionas House', >

Re: Chomp method

2006-04-28 Thread Mr. Shawn H. Corey
On Fri, 2006-28-04 at 07:33 -0700, Randal L. Schwartz wrote: > > ""Mr" == "Mr Shawn H Corey" <[EMAIL PROTECTED]> writes: > > "Mr> Everyone should compliment their reading with experimentation and their > "Mr> experimentation with reading. > > Do you mean "complement", or do you mean that you

Replying to the perl list (was Re: problem with whitespace not splitting on split.)

2006-04-28 Thread Rance Hall
Chad Perrin wrote: On Thu, Apr 27, 2006 at 08:42:51AM -0500, Rance Hall wrote: some mail readers are probably capable of reading the list header and figuring it out, but I bet others don't (like mine) I use Mutt, which allows me to list-reply, but without setting up custom configurations it

looping over an array of hashes

2006-04-28 Thread Graeme McLaren
Hi all, I need to loop over an array of hashes and assign a new hashref if a condition is met: I have a scalar which contains an array of hashes: $locations = [ { 'location_name' => 'Fionas House', 'location_id' => '0027' }, {

Re: General Perl/Web questions

2006-04-28 Thread Randal L. Schwartz
> ""Leonid" == "Leonid Grinberg" <[EMAIL PROTECTED]> writes: "Leonid> Yeah, what that would pretty much mean is that you will make a file "Leonid> called, say, CommonFuncts.pm and then in each Perl script say "Leonid> use CommonFuncts; That's a really bad package name. You're bundling thing

Re: Chomp method

2006-04-28 Thread Randal L. Schwartz
> ""Mr" == "Mr Shawn H Corey" <[EMAIL PROTECTED]> writes: "Mr> Everyone should compliment their reading with experimentation and their "Mr> experimentation with reading. Do you mean "complement", or do you mean that you should say kind words about your reading? :) -- Randal L. Schwartz - St

Re: General Perl/Web questions

2006-04-28 Thread Leonid Grinberg
Yeah, what that would pretty much mean is that you will make a file called, say, CommonFuncts.pm and then in each Perl script say use CommonFuncts; Alternatively, you can make a common_functs.pl file, where each one of the above actions is performed in a subroutine (the file should only have sub

Re: General Perl/Web questions

2006-04-28 Thread JupiterHost.Net
Steve Gross wrote: I've just finished developing a small web site that uses Perl, CGI, DBI and HTML-Template. Typically, an HTML page calls a Perl script that does a database fetch, parses the data and then puts it on another web page using a template. I've noticed that most of my web

Re: problem with whitespace not splitting on split.

2006-04-28 Thread Jay Savage
On 4/27/06, Chad Perrin <[EMAIL PROTECTED]> wrote: On Thu, Apr 27, 2006 at 06:27:06PM -0400, Ryan Frantz wrote: I tend to agree with the principles on which you base your opinion, but I don't think they're properly applied here, necessarily. I've never been subscribed to any other interactive

General Perl/Web questions

2006-04-28 Thread Steve Gross
I've just finished developing a small web site that uses Perl, CGI, DBI and HTML-Template. Typically, an HTML page calls a Perl script that does a database fetch, parses the data and then puts it on another web page using a template. I've noticed that most of my web pages look the same:

Re: #$ary ???

2006-04-28 Thread Dr.Ruud
Dr.Ruud schreef: > Why gamble that "0" is a valid index, or even the minimal index, if > there is "$["? > > Of course "the others" should use a local "$[" if they change it from > the default 0 to some other value, but you just can't be sure that it > will never bite you. Unless you use "$[" with