Re: negate, !!$a, $a!!, flip-flop

2013-09-10 Thread Casey West
On Mon, Sep 9, 2013 at 5:00 AM, Hans Ginzel wrote: > Hello! > > Is there a shorter way to write $a = ! $a, please? > > Something analogous to ++ and -- operators like $a !! or !! $a would negate > the variable $a and return its previous or new value respectively. > It sounds like what you're req

John SJ Anderson is Perl Beginners list moderator

2011-09-30 Thread Casey West
Hello list members, John SJ Anderson has accepted the role of list moderator. He'll be responsible for the moderation of this list as he sees fit. If you have any questions about that you can ask him directly or read the somewhat out of date FAQ about the list: http://learn.perl.org/faq/beginne

Re: Ten Years of Considerate Help

2011-05-29 Thread Casey West
On Fri, Apr 22, 2011 at 12:59 AM, Casey West wrote: > 1.10 - Who will maintain peace and flow on the list? > > [...] > -- > http://learn.perl.org/faq/beginners.html#1.10+who+will+maintain+peace+and+flow+on+the+list > > Anyone here with the desire and temperament can

Re: Can't call method "findnodes" on unblessed reference; not using OO Perl

2011-05-18 Thread Casey West
On Wed, May 18, 2011 at 7:55 PM, Rob Dixon wrote: > I allow myself to be wrong, but I have no wish to draw others along a > wrong line. > I agree with your sentiment. Lets end this thread now, thank you. -- Casey West

Re: Nature of this list

2011-04-23 Thread Casey West
ish on account of failing to hear your audience's feedback. Cheers, -- Casey West

Ten Years of Considerate Help

2011-04-22 Thread Casey West
s time to formally pass the torch of moderating this list to more presently capable hands. What's the job? From the FAQ: 1.10 - Who will maintain peace and flow on the list? Casey West, Kevin Meltzer and Ask Bjoern Hansen currently carry large, yet padded, clue-sticks to maintain peace and order

Ten Years of Considerate Help

2011-04-22 Thread Casey West
#x27;s time to formally pass the torch of moderating this list to more presently capable hands. What's the job? From the FAQ: 1.10 - Who will maintain peace and flow on the list? Casey West, Kevin Meltzer and Ask Bjoern Hansen currently carry large, yet padded, clue-sticks to maintain

Re: CGI

2004-12-06 Thread Casey West
compilation error. Also, if you can show any code it could help us diagnose your problem much faster. Casey West -- Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jeff Raskin

Re: Sufficient effort

2004-12-01 Thread Casey West
wever, that doesn't excuse bad behavior in response. Furthermore, I expect more from a responder than a questioner. I'd like to believe that we agree on a few points that boil down to "everyone should be courteous." Don't post bogus code. Likewise, don't flame for a bogus

Re: Sufficient effort

2004-12-01 Thread Casey West
st to see the code afterwhich I would offer further help. Being extra nice with sugar on top is frustrating. It's often a thankless task. But that's what this list is here for. Discussing a problem in the abstract is okay. That is, without code. If you want to see code, request it. N

Re: Source Code Audit

2004-12-01 Thread Casey West
description to jobs.perl.org: http://jobs.perl.org/ Good luck! Casey West -- "We take your bags and send them in all directions." --In a Copenhagen airline ticket office -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: [ADMIN] Re: Reading external file. Open files from listing and do a searc h and replace then continue...

2004-12-01 Thread Casey West
It was Wednesday, December 01, 2004 when Gunnar Hjalmarsson took the soap box, saying: : Casey West wrote: : >It was Wednesday, December 01, 2004 when Gunnar Hjalmarsson took the : >soap box, saying: : >>What do you refer to as "the original question"? To me it'

Re: [ADMIN] Re: Reading external file. Open files from listing and do a searc h and replace then continue...

2004-12-01 Thread Casey West
It was Wednesday, December 01, 2004 when Gunnar Hjalmarsson took the soap box, saying: : Casey West wrote: : >The original question was places squarely within reasonable query : >boundaries. : : What do you refer to as "the original question"? To me it's this: : http:/

[ADMIN] Re: Reading external file. Open files from listing and do a searc h and replace then continue...

2004-12-01 Thread Casey West
g.perl.misc. Their lower bound is set a bit higher. As for "what's this list for," the FAQ still stands. That portion of this thread is certainly closed. Casey West -- Shooting yourself in the foot with Lisp You shoot yourself in the appendage which holds the gun with which you s

Re: CC mit Mailprog funktioniert nicht

2004-09-10 Thread Casey West
system doesn't discriminate, neither should we (humans). :-) http://bfr.caseywest.com/archives/003131.html Casey West -- Shooting yourself in the foot with ASP You try to shoot yourself in the foot, however the most advanced thing you can manage is to cut your wrist. -- To unsubscribe,

Re: Problem when use split

2004-04-29 Thread Casey West
close(FILE); : $temp = $f[0]; : ($files, $quotause) = split(/ /,$temp); # line 39 : } Sounds like your file is empty. You check that your file exists, and that is good, but perhaps you should make sure the file is not empty using '-s' instead of '-e'? Casey Wes

Re: Splitting html into body and header...

2004-02-25 Thread Casey West
IN. We're not talking about email here, but about HTML. :-) HTML::TreeBuilder is a good module to look at. Casey West -- Shooting yourself in the foot with English You put your foot in your mouth, then bite it off. (For those who don't know, English is a McDonnell Douglas/PICK query l

Re: cool project ideas

2004-02-24 Thread Casey West
mp"); $image->write(file => "foo.jpg", type => "jpg"); And so on. :-) Casey West -- "Special today---no ice cream." --In a Swiss mountain inn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: unscribe

2004-01-16 Thread Casey West
rtain you used the originally subscribed email address? Also, you can try the form at http://learn.perl.org. I've tested these and had success with my originally subscribed email address. Please let me know if the web form works correctly. Casey West -- Shooting yourself in the foot w

Re: unscribe

2004-01-16 Thread Casey West
d be terrible if all unsubscribe requests weren't working. Casey West -- Good Idea: Dressing up for Halloween as a pirate. Bad Idea: Dressing up for Halloween as a pin~ata. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <h

Re: unscribe

2004-01-16 Thread Casey West
It was Friday, January 16, 2004 when Walter Valenti took the soap box, saying: : How i can unscribe ??? : [snipping yahoo sig] : -- : To unsubscribe, e-mail: [EMAIL PROTECTED] There you are. :-) Casey West -- Shooting yourself in the foot with Windows 95 Your gun is not compatible with

Re: no digest

2004-01-15 Thread Casey West
heard of a problem like this with that news server. Casey West -- "Airplanes are interesting toys but of no military value." -- Marechal Ferdinand Foch, Professor of Strategy, Ecole Superieure de Guerre. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Re: stop

2004-01-07 Thread Casey West
be kept in check. I think now is a good time to stop this thread. Everything that should have been said has been, as well as some things that shouldn't have. :-) Casey West -- Shooting yourself in the foot with Pascal The compiler won't let you shoot yourself in the foot. --

[ADMIN] Re: stop

2004-01-07 Thread Casey West
of it. As an aside, this mailing list could never be SPAM to you because you confirmed your subscription to it and thus every message is solicited. Even so, I'm sorry they bother you. Casey West -- Shooting yourself in the foot with APL You hear a gunshot and there's a hole in your

Re: Messing with Files [Was: some doubt]

2003-12-12 Thread Casey West
to look more like a struct, use File::stat. use File::stat; my $prop = stat($file); print $prop->size; perldoc File::stat Casey West -- "So we went to Atari and said, 'Hey, we've got this amazing thing, even built with some of your parts, and what do you think ab

Re: [ADMIN] Re: Pattern Match

2003-12-10 Thread Casey West
It was Wednesday, December 10, 2003 when Rob Dixon took the soap box, saying: : Casey West wrote: : > : > : Before I finally burst my cyanide capsule, may I.. ? : > : > No, you may not. : > : > I find walking around the block a good way to cool off. Counting to ten : > has

[ADMIN] Re: Pattern Match

2003-12-10 Thread Casey West
killing the personal tension between you two, on this list, we're throwing in the white flag. :-) Casey West -- > Once you dump SOLARIS, you're just a hop, skip and a jump from realizing > that your US$20k Sun E250 can be replaced with US$5k worth of Intel-based > equipme

Re: Pattern Match

2003-12-09 Thread Casey West
(), study(), and so on. No regular expressions, but you don't always need them. Casey West -- I'd rather listen to Newton than to Mundie. He may have been dead for almost three hundred years, but despite that he stinks up the room less. -- Linus Torvalds -- To unsubscrib

[ADMIN] Re: The True Path to Learning Perl Re: [OT] Education Level

2003-12-09 Thread Casey West
able. Picking a random post to respond to in this very lengthy OT thread... let's move on. I think the issues have been well discussed. So well, that we've degenerated. So feel free to continue in private, but I think we need to get back to helping folks in need. Thanks! Casey West -- Sho

Re: This seems to ease

2003-12-08 Thread Casey West
$var + $var;# expect: 4 print $var->in(1..3); # expect: 1 print $var->in(3..5); # expect: 0 Enjoy! Casey West -- Shooting yourself in the foot with DOS Y

[REBUILT] Re: Beta Testing a Robot

2003-12-04 Thread Casey West
oal is to be helpful, after all. :-) : -- : To unsubscribe, e-mail: [EMAIL PROTECTED] : For additional commands, e-mail: [EMAIL PROTECTED] : <http://learn.perl.org/> <http://learn.perl.org/first-response> Aah, there it is. Casey West -- Usenet is like Tetris for people who still re

Re: Beta Testing a Robot

2003-12-04 Thread Casey West
It was Wednesday, December 03, 2003 when Casey West took the soap box, saying: : I'm beta-testing a robot that searches Google when new questions are : posed to the beginners' lists. I have no idea if it will be useful. : :-) : : I'm going to watch it closely and hope it is. I&#x

[First Response Service] Re: Compile help...

2003-12-04 Thread Casey West
Hi. I'm in the employ of Casey West, a list admin, to assist you with your question. I've taken the liberty to search Google using the Subject line you provided in your email to the list. I hope one of the links below will be of service to you. Sadly Google hasn't given us a nice

Re: Beta Testing a Robot

2003-12-04 Thread Casey West
It was Wednesday, December 03, 2003 when Casey West took the soap box, saying: : I'm beta-testing a robot that searches Google when new questions are : posed to the beginners' lists. I have no idea if it will be useful. : :-) I should like to make an important note. This bot is not i

Re: 64 bit Perl memory test...

2003-12-04 Thread Casey West
7;s memory limit." I missed that part, yes. : That is exactly what this bit of code does - it fills $bigbuf with data : in 16K chunks until the OS kills it for using too much memory. Excellent. Casey West -- Good Idea: Playing the piccolo in a marching band. Bad Idea: Playing the piano in a marching band. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[First Response Service] Re: hostname

2003-12-04 Thread Casey West
Hi. I'm in the employ of Casey West, a list admin, to assist you with your question. I've taken the liberty to search Google using the Subject line you provided in your email to the list. I hope one of the links below will be of service to you. Sadly Google hasn't given us a nice

Re: Beta Testing a Robot

2003-12-04 Thread Casey West
It was Thursday, December 04, 2003 when Wiggins d Anconia took the soap box, saying: : : : > It was Wednesday, December 03, 2003 when Casey West took the soap box, : saying: : > : I'm beta-testing a robot that searches Google when new questions are : > : posed to the beginners'

[First Response Service] Re: 64 bit Perl memory test...

2003-12-04 Thread Casey West
Hi. I'm in the employ of Casey West, a list admin, to assist you with your question. I've taken the liberty to search Google using the Subject line you provided in your email to the list. I hope one of the links below will be of service to you. Sadly Google hasn't given us a nice

Re: 64 bit Perl memory test...

2003-12-04 Thread Casey West
27;t open random device: $!"; : while( read(IN, $buf, 16384) > 0 ) { : $bigbuf .= $buf; : } The original poster was having trouble with data from Oracle, not the filesystem. I'm not quite sure what you're trying to demonstrate here. Casey West -- Shooting yourself in the foot with

Re: Perl and MS Access

2003-12-04 Thread Casey West
Hi. I'm in the employ of Casey West, a list admin, to assist you with your question. I've taken the liberty to search Google using the Subject line you provided in your email to the list. I hope one of the links below will be of service to you. Sadly Google hasn't given us a nice

Re: Send in POST method

2003-12-04 Thread Casey West
Hi. I'm in the employ of Casey West, a list admin, to assist you with your question. I've taken the liberty to search Google using the Subject line you provided in your email to the list. I hope one of the links below will be of service to you. Sadly Google hasn't given us a nice

Re: Help access SQL Data using Hashes

2003-12-03 Thread Casey West
Hi. I'm in the employ of Casey West, a list admin, to assist you with your question. I've taken the liberty to search Google using the Subject line you provided in your email to the list. I hope one of the links below will be of service to you. Sadly Google hasn't given us a nice

Re: Crypt::CBC

2003-12-03 Thread Casey West
Hi. I'm in the employ of Casey West, a list admin, to assist you with your question. I've taken the liberty to search Google using the Subject line you provided in your email to the list. I hope one of the links below will be of service to you. Sadly Google hasn't given us a nice

Re: remove control chars

2003-12-03 Thread Casey West
040 to 176 gets changed to a space. : : The BEGIN block sets $/ so that input gets processed in 8kb chunks, : regardless of the format of the input files. (Can that be done with a : command-line option to perl?) -0[octal] specify record separator (\0, if no argument) Casey West -- Shootin

Re: help with removing control chars

2003-12-03 Thread Casey West
Hi. I'm in the employ of Casey West, a list admin, to assist you with your question. I've taken the liberty to search Google using the Subject line you provided in your email to the list. I hope one of the links below will be of service to you. I know we all do research before postin

Beta Testing a Robot

2003-12-03 Thread Casey West
I'm beta-testing a robot that searches Google when new questions are posed to the beginners' lists. I have no idea if it will be useful. :-) I'm going to watch it closely and hope it is. I'll remove it if I find that it does a bad job. Casey West -- Good Idea: Kissing a

Re: remove control chars

2003-12-03 Thread Casey West
Hi. I'm in the employ of Casey West, a list admin, to assist you with your question. I've taken the liberty to search Google using the Subject line you provided in your email to the list. I hope one of the links below will be of service to you. I know we all do research before postin

Re: Timing several processes

2003-12-03 Thread Casey West
be able to save yourself a load of time by using some already-written tools such as Nagios or mon. http://www.nagios.org/ http://www.kernel.org/software/mon/ Casey West -- Shooting yourself in the foot with APL You shoot yourself in the foot; then spend all day figuring out how to do it in f

Re: CGI - DBI

2003-12-01 Thread Casey West
Hi. I'm acting on behalf of Casey West, a list admin, to assist you with your question. I've taken the liberty to search Google using the Subject line you provided in your email to the list. I hope one of the links below will be of service to you. I know we all do research before postin

Re: how to do unset LANG in my program

2003-11-19 Thread Casey West
Setting your environment has to happen as early as possible, in a BEGIN block, so it's the first thing Perl does after compiling the source code. BEGIN { undef $ENV{LANG}; } Casey West -- Shooting yourself in the foot with FidoNet You put your foot in your mouth, then echo it internatio

Re: pagination of dbi results on html browser

2003-11-17 Thread Casey West
I'm looking for? : Have I not looked carefully and missed something? Client side, you want Javascript. If you really want to cluge through a request to the webserver, you'll have to deal with CGI's param()s to do what you want. Casey West -- There are two major products that co

[ADMIN] Re: File upload script

2003-11-17 Thread Casey West
ants to look at Net::FTP. http://search.cpan.org/perldoc?Net::FTP Casey West -- f u cn rd ths, u cn gt a gd jb n cmptr prgmmng. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: not on topic but relevant to list

2003-11-12 Thread Casey West
that. Use the headers. Perhaps Delivered-To could help. Casey West -- Shooting yourself in the foot with Linux Generous programmers from around the world all join forces to help you shoot yourself in the foot for free. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

[ADMIN] Re: question

2003-11-12 Thread Casey West
7.5 hours at work (not perl), that leaves -10 minutes to crap : and -2 hours a day to research perl. Cease. Desist. All of you. Thanks. Casey West -- Good Idea: Dressing up for Halloween as a pirate. Bad Idea: Dressing up for Halloween as a pin~ata. -- To unsubscribe, e-mail: [EMAIL PR

Re: not on topic but relevant to list

2003-11-12 Thread Casey West
: started to receive a lot of spam on address used for this list? This list can be viewed on the web from a number of locations. It's all too common to get spam quickly to an email address that's become public. Casey West -- "Special today---no ice cream." --In a Swiss m

[ADMIN] Re: Training in the Middle and Far East

2003-11-04 Thread Casey West
Okay folks, lets move on. I was hoping this thread would end on its own. :-) Casey West -- "Everything that can be invented has been invented." -- Charles H. Duell, Commissioner, U.S. Office of Patents, 1899. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: Rename a file

2003-10-24 Thread Casey West
alent system documentation for details. Casey West -- Good Idea: Visiting picturesque McLean, Virginia. Bad Idea: Visiting picturesque McLean Stevenson. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Hash Print and Delete

2003-10-10 Thread Casey West
from the hash *and* reurns that element's value. This is very handy. return (exists $myHash{$val1}) ? delete $myHash{$val2} : undef; Casey West -- "Stocks have reached what looks like a permanently high plateau." -- Irving Fisher, Professor of Economics, Yale Univer

Re: Inplace edit regex fun

2003-10-08 Thread Casey West
u must use their variable representations, $1 .. $9 in the replacement portion. Casey West -- The goal of Computer Science is to build something that will last at least until we've finished building it. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Regular Expressions and the sub command

2003-10-06 Thread Casey West
n use it in the replacement. This is done using parens to capture. s/(foo)/.../g; Now that we've captured 'foo', we can access it from the variable called $1 in our replacement. s/(foo)_bar/$1/g; If you were to capture two parts of your regular expression you'd use $1

Re: Read only variabls

2003-08-14 Thread Casey West
tion first. :-) http://search.cpan.org/author/CTWETEN/ex-constant-vars-0.01/vars.pm You want to use constant functions in real code. Casey West -- Shooting yourself in the foot with Ada After correctly packaging your foot, you attempt to concurrently load the gun, pull the trigger, scream

[ADMIN] Re: Download Beginning Perl ebook

2003-08-14 Thread Casey West
It was Wednesday, August 13, 2003 when [EMAIL PROTECTED] took the soap box, saying: : I've posted the ebook Beginning Perl for downloading at: I believe what probably have here is a serious copyright violation. You are not advised to act on the posting. Casey West -- Technology mak

Re: Splitting a path

2003-08-02 Thread Casey West
It was Saturday, August 02, 2003 when Gupta, Sharad took the soap box, saying: : : Hi, : : I have a path which may look like: use Env [EMAIL PROTECTED]; print "$_\n" foreach @PATH; I love the Perl core. :-) For more information read http://search.cpan.org/perldoc?Env

Re: Module install

2003-08-01 Thread Casey West
then they'll : see that it failed and know not to go further, right?: Yes, but please read http://search.cpan.org/perldoc?Test::Tutorial Casey West -- Shooting yourself in the foot with MasPar You shoot all of your friends' feet simultaneously. -- To unsubscribe, e-ma

Re: Have Module, Will Travel

2003-08-01 Thread Casey West
ut it on cpan for public use : : I know I need to get an account and namespace approval and : upload it but I'm lost as to how to do that/finer points of it. : I know the docs are there but I missed it on cpan. Also read this: http://cpan.org/misc/cpan-faq.html#How_contribute_modules

Re: Quick DBI connection

2003-07-31 Thread Casey West
is it always going to be DBI::db regardless of the driver? : I need ot know for some stuff I'm making that uses the name space of $dbh object. Yep. Casey West -- Shooting yourself in the foot with Modula-2 After realizing that you can't actually accomplish anything in this languag

Re: Perl History

2003-07-31 Thread Casey West
It was Thursday, July 31, 2003 when Ohad Ohad took the soap box, saying: : hey All, : : I need some pointers (essays, presentations whatever . . .) on Perl : past/present/future . : I'm looking for something as little technical as possible. http://history.perl.org Casey West -- Sho

Re: Learning Perl vs. c ++

2003-07-31 Thread Casey West
It was Thursday, July 31, 2003 when Michael Muratet took the soap box, saying: : On Thu, 31 Jul 2003 14:15:17 -0400 : Casey West <[EMAIL PROTECTED]> wrote: : : > It was Thursday, July 31, 2003 when GregorioGonzalez took the soap : > box, saying:: Hello: : > : : > : I have heard

Re: Learning Perl vs. c ++

2003-07-31 Thread Casey West
rl on my own time. I've never once found a decent C++ gig, and have been working steady using Perl ever since. Your milage may vary, however. Casey West -- Shooting yourself in the foot with ASP You try to shoot yourself in the foot, however the most advanced thing you can manage is t

Re: Round/sprintf

2003-07-30 Thread Casey West
;%.2f', $number; Casey West -- Shooting yourself in the foot with SmallTalk You daydream repeatedly about shooting yourself in the foot. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Mail Parser?

2003-07-29 Thread Casey West
check only : the headers of the messages? I would suggest using Email::Simple. Take a look at the documentation here. http://search.cpan.org/perldoc?Email::Simple Casey West -- Shooting yourself in the foot with Genetic Algorithms You create 10,000 strings describing the best way to shoot y

Re: Returning variables

2003-07-28 Thread Casey West
ea how to get it to be friends with use strict; ?? You have to turn off strict 'refs'. use strict; # ... for ( @list ) { no strict 'refs'; # ... } : : IE : perl -le'use strict;sub v{${$_} = ++$c for qw[x y z]} v; print "$x $y $z"' : :

Re: extracting a string

2003-07-28 Thread Casey West
ile::Basename Enjoy! Casey West -- Shooting yourself in the foot with Apple System 7 Double click the gun icon and a window giving a selection for guns, target areas, plus balloon help with medical remedies, and assorted sound effects. Click "shoot" button and a small bomb appears

Re: loading a module

2003-07-21 Thread Casey West
27;install Time::HiRes' For more information, consult the documentation for CPAN. perldoc CPAN Casey West -- Usenet is like a herd of performing elephants with diarrhea -- massive, difficult to redirect, awe-inspiring, entertaining, and a source of mind-boggling amounts of excrement

Re: Mail Sender in Perl

2003-07-09 Thread Casey West
Mail::Sender? Mail::Sender is an option, the easiest module that I've used to send mail in any form is MIME::Lite. But if you want to go low level, close to the SMTP level, try Net::SMTP. Proper documentation can be found by the same means you already have for Mail::Sender. Casey West --

Re: perl line breaks...

2003-07-06 Thread Casey West
0; $a = 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10; Casey West -- "I'm going to memorize your name and throw my head away." --Oscar Levant -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[ADMIN] Re: CPAN

2003-07-06 Thread Casey West
having a little hicup. : I can access www.cpan.org though. It is important to remember that search.cpan.org is not cpan.org. In fact, it is just a fancy CPAN mirror, similar to other CPAN mirrors. Graham will have it up shortly, I'm sure. Casey West -- Shooting yourself in the foot with

Re: testing an argument's type

2003-07-04 Thread Casey West
n($) { } This will require the first argument to be scalar. If the first argument is mandatory, follow the dollar sign ($) with a semi-colon (;). Casey West -- "DOS addresses only 1 Megabyte of RAM because we cannot imagine any applications needing more." -- Microsoft, 1980, on t

Re: formatting a number

2003-07-03 Thread Casey West
)/,reverse($num), "\n"; : : This works but was wondering if anyone might suggest a better method. This is something folks always want to do. I suggest reading the FAQ on the subject. perldoc -q commas added Casey West -- If you put garbage in a computer nothing comes out but

Re: match count

2003-07-02 Thread Casey West
d segments. This will store the segments and matched split strings in @parts sequentially. Next, we take elements off the end of @parts untill the size of the list is equal to the twice the max count. the max count is doubled because we've also stored the delimiters from the split. Finally,

Re: help me perl : sftp

2003-06-27 Thread Casey West
rtant that you change your password immediatley. Good luck. Casey West -- I am a superhero. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Stupid(?) Question on System "set"

2003-06-19 Thread Casey West
not use %ENV? printf "%s=%s\n", $_, $ENV{$_} foreach keys %ENV; Casey West -- Shooting yourself in the foot with APL @#&^$%&%^ foot -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Quick CGI query_string() question

2003-06-19 Thread Casey West
#x27;); $cgi->delete('foo'); my $q = $cgi->query_string(); Then elsewhere in your program you can use the original query string paramters. my $thing = param('foo'); Casey West -- "The wireless music box has no imaginable commercial value. Who would pay for

Re: Removing entries from an array

2003-06-19 Thread Casey West
It was Friday, June 20, 2003 when Abhijit Shylanath took the soap box, saying: : : Greets, all. This is my first post here... I'm a seasoned C/C++ programmer, : and recently started learning perl... it's going along well, and as an : exercise, I've completely Perl'ed my webpage. I'm still a little

Re: smtp problem

2003-06-19 Thread Casey West
form : Any help is appreciated CODE IS BELOW I would suggest using MIME::Lite, a module you can find on the CPAN. It was designed for this type of task, and the documentation can help you set up a text/html message. Casey West -- Live TV died in the late 1950s, electronic bulletin boards came al

Re: Html::mason

2003-06-13 Thread Casey West
Casey West -- > Once you dump SOLARIS, you're just a hop, skip and a jump from realizing > that your US$20k Sun E250 can be replaced with US$5k worth of Intel-based > equipment from a reputable vendor, such as IBM. Dream on. -- Abigail -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Something screwy with split

2003-06-13 Thread Casey West
and it pretty well too. If order is important to you, you want the list to stay in the same order as the passwd file, you can change this arround a bit and use a list of hashes. my @records; while () { my($user, $pass) = split( /:/, $_ ); push @records, { user => $use

Re: Searchable archive for this list?

2003-03-10 Thread Casey West
ry good searching support for newsgroups such as perl.beginners. Casey West -- Shooting yourself in the foot with Scheme As Lisp, but none of the other appendages are aware of this happening. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: net-whois help

2003-03-10 Thread Casey West
://search.cpan.org/author/DHUDES/Net-Whois-1.9/Whois.pm There is the documentation. search.cpan.org is very helpful in finding documentation. Casey West -- "I'm just glad it'll be Clark Gable who's falling on his face and not Gary Cooper." -- Gary Cooper on his decision not to take

Re: cpan problems

2003-03-05 Thread Casey West
using CPANPLUS (with the cpanp shell utility), it's the "next generation" CPAN interface. Casey West -- Shooting yourself in the foot with Assembly Language You crash the OS and overwrite the root disk. The system administrator arrives and shoots you in the foot. After a moment o

Re: Searching a module to share a file

2003-02-27 Thread Casey West
It was Thursday, February 27, 2003 when Yannick Warnier took the soap box, saying: : Le jeu 27/02/2003 ? 15:11, Casey West a ?crit : : > It was Thursday, February 27, 2003 when Yannick Warnier took the soap box, saying: : > : Hi, : > : : > : I'm searching for some perl module to

Re: Searching a module to share a file

2003-02-27 Thread Casey West
me : already-packaged solution. With the level of detail we have the best bet I can think of is to start with a home grown solution, you'll have to write it. You may get help from Parse::RecDescent or similar modules. Casey West -- Live TV died in the late 1950s, electronic bulletin boar

Re: Matching vogon

2003-02-26 Thread Casey West
egex in '\Q' and '\E' sequences. This would make your regex look something like this (when the needless curlies are removed): /^\Q$name\E(.*)$suf$/ Enjoy! Casey West -- Shooting yourself in the foot with Fortran You shoot yourself in each toe, iteratively, until you run

Re: reading from a pipe

2003-02-21 Thread Casey West
files are supplied on the command line, they are opened and looped through as well. It's an ever so handy feature. Plus, it's low on memory. Casey West -- Shooting yourself in the foot with Snobol If you succeed, shoot yourself in the left foot. If you fail, shoot yourself in the right foot. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: parsing email from STDIN

2003-02-21 Thread Casey West
ly above, but if you want an easier approach, this is what I would go with. my $subject = $headers->{Subject}->[0]; Casey West -- Corollary to Godwin's Law: "As a p5p thread grows longer, the probability of a bad pun approaches one. Once this occurs, that thread is ove

Re: parsing email from STDIN

2003-02-21 Thread Casey West
ail message. This is nice, since getting a list from STDIN is not difficult. my $mail = Mail::Internet->new( [ ] ); my $headers = $mail->head->header_hashref; my $subject = $headers->{Subject}; Enjoy! Casey West -- Shooting yourself in the foot with Apple System 7 Double cli

Re: How to start processes in parallel?

2002-07-02 Thread Casey West
would : like to process them in parallel. How could that be done? Threads? I suggest you use POE. You can find POE on the cpan, go to search.cpan.org and look it up. In the SYNOPSIS there is an example that should give you the foundations of exactly what you want. -- Casey West Aaronsen Group

Re: Pop Quiz

2002-01-28 Thread Casey West
, ""; 'perldoc -f substr' for more info on it. Enjoy! Casey West -- "Windows NT 3.5 is not designed to route packets. . .so your Internet Service Provider cannot be a Windows NT 3.5 box." -- Microsoft, 1995, on Win NT RAS -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Javascript with DBI

2002-01-28 Thread Casey West
CPAN or at wddx.org. back to the Casey West -- "I'm going to memorize your name and throw my head away." --Oscar Levant -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: how do i utilize an external hashtable?

2002-01-28 Thread Casey West
'my $hash = { ... }; my $hash = eval $hashdata; # perldoc -f eval die $@ if $@;# perldoc perlvar for $@ # now just use the hash reference print "$hash->{one}\n"; Enjoy! Casey West -- Considering the flames and intolerance, shouldn't USENET be spelle

  1   2   >