Re: The >> operator

2004-05-29 Thread Ricardo SIGNES
* gohaku <[EMAIL PROTECTED]> [2004-05-29T00:28:07] > Hi all, > I'm not sure if ">>" is an official operator in Perl but I have seen > ">>" used in conjunction with > HTML code or Long Strings. > a google search and perldoc doesn't return any useful information. > I am looking for code examples tha

Perl Class simple problem

2004-05-29 Thread Graeme McLaren
Afternoon all, I'm trying to write a class for configuration values for different sites so that they can use the same conf class, then create an object and get whatever value they need. The problem I have this: I create an object and pass a value to my constructor like this: Conf->new(site=>'x'

Re: The >> operator

2004-05-29 Thread Randal L. Schwartz
> "John" == John W Krahn <[EMAIL PROTECTED]> writes: John> Oddly enough, unlike most other operators in Perl, >> has only one use, John> number 1 above. Well, some people might consider open FOO, ">>bar" to be another "use" of ">>". -- Randal L. Schwartz - Stonehenge Consulting Services, In

RE: Perl Class simple problem

2004-05-29 Thread Charles K. Clarkson
Graeme McLaren wrote: [snip useful code] : $self->_init(); Pass the site to _init(): $self->_init( $arg{site} ); : } : : sub _init{ : my $self = shift; my $site = shift; die $site; : die %{$self}; : } That was the short answer. The long an

Re: Perl Class simple problem

2004-05-29 Thread drieux
On May 29, 2004, at 5:10 AM, Graeme McLaren wrote: [..] I create an object and pass a value to my constructor like this: Conf->new(site=>'x'), this tells the constructor which site I want the config for, then at the end of the constructor I call $self->_init(); This passes a reference to $self (

Re: Request Tracker and HTML::FormatText

2004-05-29 Thread Roberto Etcheverry
The usual way to install modules is to run 'cpan': [EMAIL PROTECTED] root]# cpan cpan shell -- CPAN exploration and modules installation (v1.76) ReadLine support enabled cpan>install Your::Module:Here . . (dowloads the module, builds, tests and installs it) . . . cpan> quit You can look for a

Re: Request Tracker and HTML::FormatText

2004-05-29 Thread Robert Citek
On Saturday, May 29, 2004, at 09:03 US/Central, Roberto Etcheverry wrote: The usual way to install modules is to run 'cpan': Here's a transcript of my cpan search: # perl -MCPAN -e 'shell;' Terminal does not support AddHistory. cpan shell -- CPAN exploration and modules installation (v1.7601) Rea

Re: Request Tracker and HTML::FormatText

2004-05-29 Thread Roberto Etcheverry
I tried at first with cpan and got the same result as you, don't know why. But if you go to CPAN search (seach.cpan.org) and look for HTML::FormatText in 'modules' you can find it. Try http://search.cpan.org/search?query=HTML%3A%3AFormatText&mode=module On Sat, 29 May 2004, Robert Citek wrote: >

Win32 Question and Help needed

2004-05-29 Thread Jonathan Hight
Hi all, I am just starting with Perl, and I am running into a few problems. I installed the Win32 Perl source from Activestate(I hope good) and it installed properly. I then went looking for a GUI and found OPEN Perl IDE, a open source code GUI application and began messing around with it. The pr

Perl Class simple problem: What is "die" being used for?

2004-05-29 Thread Rob Richardson
Greetings! I'm curious about the Graeme's _init() method, reproducted below: sub _init { my $self = shift; die $self->site(); } What is "die" used for? I thought that the effect of "die" was to nd the process. That's not the effect here, though. What is it doing here? Thanks very muc

Impossible error message

2004-05-29 Thread Rob Richardson
Greetings! My program was compiling and running. It was giving me strange results from my print() functions. One of the list members was kind enough to point out my mistake. (I was putting "$user->LastName()" into a string to be printed.) I fixed it. Now I my program doesn't compile, and it's

Re: Impossible error message

2004-05-29 Thread Paul Johnson
On Sat, May 29, 2004 at 02:39:53PM -0700, Rob Richardson wrote: > Greetings! Hello Earthman! > My program was compiling and running. It was giving me strange results > from my print() functions. One of the list members was kind enough to > point out my mistake. (I was putting "$user->LastName

RE: Perl Class simple problem: What is "die" being used for?

2004-05-29 Thread Charles K. Clarkson
Rob Richardson wrote: : Greetings! : : I'm curious about the Graeme's _init() method, reproducted below: : : sub _init { : my $self = shift; : die $self->site(); : } : : What is "die" used for? I thought that the effect of "die" : was to end the process. Tha

Re: The >> operator

2004-05-29 Thread John W. Krahn
"Randal L. Schwartz" wrote: > > > "John" == John W Krahn <[EMAIL PROTECTED]> writes: > > John> Oddly enough, unlike most other operators in Perl, >> has only one use, > John> number 1 above. > > Well, some people might consider open FOO, ">>bar" to be another "use" > of ">>". Oh come on Ran

Sort on Pipe-Delimited Column

2004-05-29 Thread Jeff Westman
Hello, I have some data that is pipe-delimited, that I would like to sort on the first column (numeric). The data looks like this: 173|Supertramp|The Very Best of Supertramp 19|Story, Liz|My Foolish Heart 54|Tchaikovsky|Nutcracker Suite 187|Tesla|Time's Makin' Changes: The Best of Tesla and onc

Re: Sort on Pipe-Delimited Column

2004-05-29 Thread John W. Krahn
Jeff Westman wrote: > > Hello, Hello, > I have some data that is pipe-delimited, that I would like to sort > on the first column (numeric). The data looks like this: > > 173|Supertramp|The Very Best of Supertramp > 19|Story, Liz|My Foolish Heart > 54|Tchaikovsky|Nutcracker Suite > 187|Tesla|Ti