"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
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
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,
> "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
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
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
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
"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
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
(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
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"
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
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
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]
What is the easiest way to search a text file for the line "CLASS IC"
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
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
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
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
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
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
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
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
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]
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
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
Does anyone have a good hold of how to do object oriented programming in
perl? Maybe a few lines of code as examples?
EDUB
"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
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
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
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
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=
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]
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
--
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
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
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
"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:
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
"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
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
41 matches
Mail list logo