Re: packages object oriented

2003-09-12 Thread R. Joseph Newton
"R. Joseph Newton" wrote: > > sub initialize { > my $self = shift; # references the oblect. > my ($title, $purpose, $text) = @_; > > $self->{'Title'} = $title; > $self->{'Purpose'} = $purpose; > push @{$self->{'Text'}}, $_ foreach @$text; > return $self; > } Sorry, ther

Re: packages object oriented

2003-09-12 Thread R. Joseph Newton
Eric Walker wrote: > I have a small grasp of the concept, What concept? We don't know what you are responding to. > but what I am doing involves a > better understanding than I have. I am doing a project that will allow > a user to build a particular file called a do file. Its used in a route

Re: Output and logs

2003-09-12 Thread R. Joseph Newton
Kevin Roland Viel wrote: > Greetings, > >I have just installed ActivePerl 5.8.0.806 on a Win2000 machine. My > path variable contains C:\Perl\bin\. I have the following code in a > program > print.pl: > > $DNA="AGT"; > print $DNA; > exit; > >Where might I see the results? For instance,

Re: packages object oriented

2003-09-12 Thread Randal L. Schwartz
> "Eric" == Eric Walker <[EMAIL PROTECTED]> writes: Eric> Does anyone have a good hold of how to do object oriented programming in Eric> perl? Maybe a few lines of code as examples? "perldoc perlboot". Or, if you like the feel of paper, "Learning Perl Objects References and Modules", where

Re: Linux Kernel Version and Perl Compilation

2003-09-12 Thread Steve Grazzini
On Fri, Sep 12, 2003 at 12:30:44PM -0500, Wiggins d'Anconia wrote: > I know there were substantial improvements from 5.6.0 to 5.6.1 but I > am not sure any of them will affect my code, any in particular I should > be on the look out for? It's perfectly usable, but 5.6.0 did end up with a reputatio

RE: Searching files

2003-09-12 Thread Bob Showalter
M.V.Johnson wrote: > ... > Okay Bob, > > Her is the whole story. :-D > > I am processing a directory full of .txt files. These .txt files have > the following structure: > > (DEVICE FILE: 74LVT16244A-TSSOP48_1) > PACKAGE 'TSSOP-48-S0' > CLASS IO > PINCOUNT 48 > PINORDER 'LVT16244A-TSSOP48_1' A0

Re: Linux Kernel Version and Perl Compilation

2003-09-12 Thread david
Wiggins D'Anconia wrote: > Now to my actual question, and this may be more a Linux question than > Perl, but I thought I would see what the gurus have to say, could I run > into issues with a Perl compiled on one kernel version aka 2.2.16 and it > running under a different, specifically 2.4.9 (smp

Re: Searching files

2003-09-12 Thread John W. Krahn
"M.V.Johnson" wrote: > > I am familiar with grep in the shell. Will that grep line work in the > context of a perl script? > > The code is looking at a directory full of .txt files. I want to parse a > line in the .txt file only if the file does NOT contain the line "CLASS IC" Perhaps something

Re: Linux Kernel Version and Perl Compilation

2003-09-12 Thread John W. Krahn
Wiggins D'Anconia wrote: > > Currently I am looking at a new hosting provider and already hit one > strike where the Perl version they had listed on their "Packages" page > differed from that installed, aka they listed 5.6.1 and have 5.6.0 > installed which really tinkers my toys, but I may be abl

RE: Searching files

2003-09-12 Thread Bob Showalter
(top-posting fixed) M.V.Johnson wrote: > - Original Message - > From: "Bob Showalter" <[EMAIL PROTECTED]> > To: "'M.V.Johnson'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Friday, September 12, 2003 1:25 PM > Subject: RE: Searching files > > > > M.V.Johnson wrote: > > > What is the e

Re: Searching files

2003-09-12 Thread M.V.Johnson
I am familiar with grep in the shell. Will that grep line work in the context of a perl script? The code is looking at a directory full of .txt files. I want to parse a line in the .txt file only if the file does NOT contain the line "CLASS IC" M - Original Message - From: "Bob Showalter"

Linux Kernel Version and Perl Compilation

2003-09-12 Thread Wiggins d'Anconia
Currently I am looking at a new hosting provider and already hit one strike where the Perl version they had listed on their "Packages" page differed from that installed, aka they listed 5.6.1 and have 5.6.0 installed which really tinkers my toys, but I may be able to let that one slip. I know th

Re: packages object oriented

2003-09-12 Thread Eric Walker
Thanks all for the good resources on OOP. I have been reading a few perl books and it seemed not to sink in. the link that I got on the web does it for me. The light has clicked. Now I just have to read the rest and apply it. Thanks again all for your help. EDUB On Fri, 2003-09-12 at 10:48, S

RE: Searching files

2003-09-12 Thread Bob Showalter
M.V.Johnson wrote: > What is the easiest way to search a text file for the line "CLASS IC" $ grep -q 'CLASS IC' mytextfile && echo 'Found it!' -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Searching files

2003-09-12 Thread M.V.Johnson
What is the easiest way to search a text file for the line "CLASS IC"

Re: packages object oriented

2003-09-12 Thread Steve Grazzini
On Fri, Sep 12, 2003 at 08:32:38AM -0600, Eric Walker wrote: > Does anyone have a good hold of how to do object oriented programming > in perl? Maybe a few lines of code as examples? There are some tutorials in the standard docs. $ perldoc perlobj $ perldoc perlboot $ perldoc perltoo

Re: regex question

2003-09-12 Thread James Edward Gray II
On Friday, September 12, 2003, at 10:41 AM, Johnson, Shaunn wrote: Howdy: Is it possible to use regex to replace the first n characters of a line? There are no unique markers or items to map by in these files ... some lines could start with number or whatever (special characters, white space, al

RE: any easy library to create a thumbnail

2003-09-12 Thread NYIMI Jose (BMB)
Try ImageMagick module. http://imagemagick.sourceforge.net/ http://search.cpan.org/author/JCRISTY/PerlMagick-5.57/Magick.pm José. -Original Message- From: Ramprasad A Padmanabhan [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 4:58 PM To: [EMAIL PROTECTED] Subject: any easy l

regex question

2003-09-12 Thread Johnson, Shaunn
Howdy: Is it possible to use regex to replace the first n characters of a line? There are no unique markers or items to map by in these files ... some lines could start with number or whatever (special characters, white space, alpha, etc). If so, how? Thanks! -X

Re: any easy library to create a thumbnail

2003-09-12 Thread K Old
On Fri, 2003-09-12 at 10:57, Ramprasad A Padmanabhan wrote: > Hi all, > I am trying to convert my gifs and png to thumbnails > > Does anyone know a library that can help me Ram, I use Image::Thumbnail (available on CPAN) to convert jpegs, but I'm sure there's a way to get gifs working. This mo

RE: packages object oriented

2003-09-12 Thread NYIMI Jose (BMB)
Ch3 of "OO Perl" book is free from http://www.manning.com/getpage.html?project=conway&filename=Chapters.html José. -Original Message- From: Eric Walker [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 4:33 PM To: perlgroup Subject: packages object oriented Does anyone have a

Re: packages object oriented

2003-09-12 Thread James Edward Gray II
It does help. It tells me that a few lines of code aren't going to do anything for you here. :) I really suggest you look into some of the resources we've suggested. It just sounds like you knowledge level is going to need a boost. Sorry if that's not the answer you were looking for. Jame

Re: packages object oriented

2003-09-12 Thread Eric Walker
I have a small grasp of the concept, but what I am doing involves a better understanding than I have. I am doing a project that will allow a user to build a particular file called a do file. Its used in a route tool called iccraftsman. In this particular file it has several sections. Each secti

any easy library to create a thumbnail

2003-09-12 Thread Ramprasad A Padmanabhan
Hi all, I am trying to convert my gifs and png to thumbnails Does anyone know a library that can help me Thanks Ram -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: packages object oriented

2003-09-12 Thread James Edward Gray II
On Friday, September 12, 2003, at 09:32 AM, Eric Walker wrote: Does anyone have a good hold of how to do object oriented programming in perl? Maybe a few lines of code as examples? I feel my grasp of the concept is strong, but perhaps myself, and others, could help more if we knew what you're

RE: packages object oriented

2003-09-12 Thread Halkyard, Jim
Have a look at Tom's Object Oriented Tutorial man perltoot or perldoc perltoot Jim -Original Message- From: Eric Walker [mailto:[EMAIL PROTECTED] Sent: 12 September 2003 15:33 To: perlgroup Subject: packages object oriented Does anyone have a good hold of how to do object oriented pr

packages object oriented

2003-09-12 Thread Eric Walker
Does anyone have a good hold of how to do object oriented programming in perl? Maybe a few lines of code as examples? EDUB

Re: substitute character in variable

2003-09-12 Thread Robin Norwood
"Michael Goodman" <[EMAIL PROTECTED]> writes: > Pardon my ignorance but, > > How do you parse a variable to find every occurrence of a string and > replace the string with another. I tried using ~s/ but it doesn't work. Michael, It's usually better to post a code example so that we can see w

Re: substitute character in variable

2003-09-12 Thread James Edward Gray II
On Friday, September 12, 2003, at 08:27 AM, Michael Goodman wrote: Pardon my ignorance but, How do you parse a variable to find every occurrence of a string and replace the string with another. I tried using ~s/ but it doesn't work. For replacing a string, you want: $variable =~ s/STRING/RE

Re: substitute character in variable

2003-09-12 Thread Rob Dixon
Hi Michael Michael Goodman wrote: > > Pardon my ignorance but, This is a beginners list :) > How do you parse a variable to find every occurrence of a string and > replace the string with another. I tried using ~s/ but it doesn't work. use strict; use warnings; my $variable = "A and B a

RE: substitute character in variable

2003-09-12 Thread Marcos . Rebelo
give one example -Original Message- From: Michael Goodman [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 3:27 PM To: [EMAIL PROTECTED] Subject: substitute character in variable Pardon my ignorance but, How do you parse a variable to find every occurrence of a string and re

Re: POSIX::getchar

2003-09-12 Thread Rob Dixon
John Fisher wrote: > > What am I doing wrong? Here are 3 attempts at trying to use getchar. > It seems I am following the Usage, but I guess not. > > > $ perl -e 'use POSIX;$ab="10";$pab=POSIX::getchar($ab);print $ab,"\n",$pab;' > Usage: POSIX::getchar() at -e line 1 > > > $ perl -e 'use POSIX;$ab=

substitute character in variable

2003-09-12 Thread Michael Goodman
Pardon my ignorance but, How do you parse a variable to find every occurrence of a string and replace the string with another. I tried using ~s/ but it doesn't work. Thanks, -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: POSIX::getchar

2003-09-12 Thread James Edward Gray II
On Friday, September 12, 2003, at 07:18 AM, JOHN FISHER wrote: What am I doing wrong? Here are 3 attempts at trying to use getchar. It seems I am following the Usage, but I guess not. POSIX's getchar() doesn't take any arguments. It pulls from STDIN automatically. Hope that helps. James --

POSIX::getchar

2003-09-12 Thread JOHN FISHER
What am I doing wrong? Here are 3 attempts at trying to use getchar. It seems I am following the Usage, but I guess not. $ perl -e 'use POSIX;$ab="10";$pab=POSIX::getchar($ab);print $ab,"\n",$pab;' Usage: POSIX::getchar() at -e line 1 $ perl -e 'use POSIX;$ab="10";$pab=POSIX::getchar(STDIN);p

Re: getting the IP address of a visitor to a site

2003-09-12 Thread Jimstone77
In a message dated 9/11/03 6:10:06 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: > On Thu, 11 Sep 2003 12:46:24 + > "Anadi Taylor" <[EMAIL PROTECTED]> wrote: > > > > > I am writting a hit counter and would like to get the IP address of a > > visitor to my site, can anyone point me in

Re: Env. var LC_ALL

2003-09-12 Thread Matthew Harrison
hi, setenv is a c shell internal. with bash use export LC_ALL=C On Fri, Sep 12, 2003 at 01:12:54PM +0200, Gisle Askestad wrote: > Hi > And thank you for replying to my problem. > > I tried: setenv LC_ALL=C > It returned: bash: setenv: command not found > > "set env LC_ALL=C" doe

Re: Env. var LC_ALL

2003-09-12 Thread Todd W.
"Gisle Askestad" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] please dont top post. f'ups rearranged. > >>I'm using RedHat 8.0 and Perl 5.8.0 > >> > >>I'm trying to install Time:HiRes from CPAN which is needed to > >>use the File::Tail module. When running "Make" i get the error:

RE: using cpan - need info

2003-09-12 Thread JOHN FISHER
Ah, much better. Thanks. >>> "Wiggins d'Anconia" <[EMAIL PROTECTED]> 09/11/03 10:42AM >>> The web interface is very easy to use: http://search.cpan.org or is there some reason why this must be done from the CLI? If so the limitation of scrolling is usually best handled in the terminal window

Re: Env. var LC_ALL

2003-09-12 Thread Todd W.
"Gisle Askestad" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I'm trying to install Time:HiRes from CPAN which is needed to use the > File::Tail module. When running "Make" i get the error: > > Makefile:91: *** missing separator. Stop. > > Makefile.PL says: > > NOTE: if you get

Re: Env. var LC_ALL

2003-09-12 Thread Gisle Askestad
Hi And thank you for replying to my problem. I tried: setenv LC_ALL=C It returned: bash: setenv: command not found "set env LC_ALL=C" does not return any error, but printenv does not show LC_ALL=C in the environment variables. man setenv and man printenv, even printenv works fine. My ReaHat build