Re: pseudohash

2006-02-12 Thread Beast
Tom Phoenix wrote: On 2/10/06, Beast <[EMAIL PROTECTED]> wrote: Could someone explain what is pseudohash means? A "pseudohash", much like "the macarena", "N-rays", "Herbalife", "Paris Hilton", "New Coke", and "Intelligent Design", is an idea that sounded good at the time. It's obsolete; it's

IRC Proxy support

2006-02-12 Thread Sky Blueshoes
I've written an IRC bot, but I would like to add proxy support. I have no idea how to start on this. Does anyone know of a module that does this or at least the specifics of connecting to IRC through a proxy? -- SkyBlueshoes http://skyblue.fulllifeministries.org [EMAIL PROTECTED] Intel Pentium

Re: substitution

2006-02-12 Thread Tom Phoenix
On 2/12/06, Bowen, Bruce <[EMAIL PROTECTED]> wrote: > I have a text string = "^0176 ^0176" > > I have set $a = "^0176 ^0176"; > I have set $b = "^0176 "; > > I'm using text =~ s/$a/$b/g; > > And the text string doesn't change. The caret is a metacharacter. You may want to use \Q or the quoteme

Trouble with line endings

2006-02-12 Thread Rick Triplett
I shared this thread with the support people at Bare Bones Software. This was their reply: Hi Rick, TextWrangler always uses \r (ASCII 13, the canonical carriage return) internally, but you can tell it to use any desired representation on disk for the line endings: Mac (CR), Unix (LF), or

substitution

2006-02-12 Thread Bowen, Bruce
I have a text string = "^0176 ^0176" I have set $a = "^0176 ^0176"; I have set $b = "^0176 "; I'm using text =~ s/$a/$b/g; And the text string doesn't change. I expected it to come out as "^0176 " after the substitution. What is wrong with my logic? Bruce Bowen 401-568-8315

Re: Redirecting STDOUT to an array

2006-02-12 Thread Chas Owens
On 2/12/06, Ron Smith <[EMAIL PROTECTED]> wrote: snip > Yeah, I deserve it. Giving the whole story in the beginning would have been > better. But, > hey I'm JAPH and laziness is a virtue in that case. :-) Anyway the "push" > does just fine. snip There is a difference between laziness (a sin) and

Re: Redirecting STDOUT to an array

2006-02-12 Thread Ron Smith
Tom Phoenix <[EMAIL PROTECTED]> wrote: Inexplicably, Ron Smith seems to have written: > Yes, you are right. I probably should post the rest of the story at this > point: > and I'd like to generate a row of asterisks, based on the number stored in > $firstBar. I thought of printing to a file th

Re: Redirecting STDOUT to an array

2006-02-12 Thread Tom Phoenix
Inexplicably, Ron Smith <[EMAIL PROTECTED]> seems to have written: > Yes, you are right. I probably should post the rest of the story at this > point: > and I'd like to generate a row of asterisks, based on the number stored in > $firstBar. I thought of printing to a file then splitting the co

Re: Redirecting STDOUT to an array

2006-02-12 Thread Ron Smith
Tom Phoenix <[EMAIL PROTECTED]> wrote: On 2/12/06, Ron Smith wrote: > How would I redirect the output of the print line to an array instaed of > STDOUT? > > my $firstBar = 5; > print "*" while $firstBar, $firstBar--; You would write some Perl code that puts something into an array, and you woul

Re: Redirecting STDOUT to an array

2006-02-12 Thread Ron Smith
Sky Blueshoes <[EMAIL PROTECTED]> wrote: Ron Smith wrote: >Hi all, > > How would I redirect the output of the print line to an array instaed of > STDOUT? > > my $firstBar = 5; > print "*" while $firstBar, $firstBar--; > > I've looked in several places, including the Camel Book and the Cookboo

Re: Redirecting STDOUT to an array

2006-02-12 Thread Tom Phoenix
On 2/12/06, Ron Smith <[EMAIL PROTECTED]> wrote: > How would I redirect the output of the print line to an array instaed of > STDOUT? > > my $firstBar = 5; > print "*" while $firstBar, $firstBar--; You would write some Perl code that puts something into an array, and you would use that in

Re: How do I redirect STDIN [Please, ignore this thread]

2006-02-12 Thread Ron Smith
Please, ignore this thread!! I've posted the correct thread under the subject: Redirecting STDOUT to an array. Ron Smith <[EMAIL PROTECTED]> wrote: Hi all, How would I redirect the output of the print line to an array instaed of STDOUT? my $firstBar = 5; print "*" while $firstBar, $firstBar--

Redirecting STDOUT to an array

2006-02-12 Thread Ron Smith
Hi all, How would I redirect the output of the print line to an array instaed of STDOUT? my $firstBar = 5; print "*" while $firstBar, $firstBar--; I've looked in several places, including the Camel Book and the Cookbook. Everything seems to be refering to a filehandle instead.

How do I redirect STDIN

2006-02-12 Thread Ron Smith
Hi all, How would I redirect the output of the print line to an array instaed of STDOUT? my $firstBar = 5; print "*" while $firstBar, $firstBar--; I've looked in several places, including the Camel Book and the Cookbook. Everything seems to be refering to a filehandle instead.

RE: non-lvalue

2006-02-12 Thread Charles K. Clarkson
Ken Perl wrote: : what is the meaning of non-lvalue in the error? Binary operators take a left hand side value and a right hand side value. The equal (=) operator, for example, assigns the right hand side to the left hand side. left hand side = right hand side Some values can only

non-lvalue

2006-02-12 Thread Ken Perl
Root cause: Can't modify non-lvalue subroutine call at ... what is the meaning of non-lvalue in the error? -- perl -e 'print unpack(u,"62V5N\"FME;G\!Ehttp://learn.perl.org/>

Re: Regular expression question...

2006-02-12 Thread Chas Owens
On 2/12/06, Ley, Chung <[EMAIL PROTECTED]> wrote: > Hi, > > What is the regular expression to look for "%" unless that the "\" is right > before that? > > So, if I have something like this: > "\%abc%", I like to get the 2nd "%" and not the first > > Thanks... > > --Chung Your first resource f