Re: Dynamically calling a subroutine

2007-02-12 Thread Chad Perrin
y figure out how to accomplish what you're doing when I don't know what criteria you want to use to choose the specific subroutine you're going to use at a given moment. Best o' luck. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] unix virus: If you're using a unixlike

Re: getopt

2007-01-24 Thread Chad Perrin
ink it's important enough, maybe you could make a case for that functionality being added to the version of rm included with core utilities on your system. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "There comes a time in the history of any project when it becomes necessa

Re: Free Perl Editor

2007-01-02 Thread Chad Perrin
On Tue, Jan 02, 2007 at 02:32:52PM +, Matt Richards wrote: > OROSZI Balázs wrote: > >Emacs and Vim are both braindead. > > what do you use as your text editor then? His bad attitude, I guess. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "It's just i

Re: Hello to Perl World

2007-01-02 Thread Chad Perrin
nk they named it EMACS? It stands for Esc-Meta-Alt-Ctrl-Shift. Of course, I'd only say that (mostly) in jest. I know GNU Emacs works quite well for some people. For me, however, it falls short of my needs, precisely because it tries to do everything. -- CCD CopyWrite Chad Perrin [ http://

Re: Free Perl Editor

2007-01-02 Thread Chad Perrin
On Tue, Jan 02, 2007 at 01:39:02PM +0700, Eko Budiharto wrote: > who said only GNU emacs is everything. Actually, there are other plain > text editors you can use. I'm a big fan of Vim and SciTE (in that order). -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "The me

Re: Negate a regular expression

2006-12-30 Thread Chad Perrin
> Will that do what I want? If you want anything but a given pattern, the best way to do it is usually by using the !~ operator. Thus, if you have a pattern $foo, this matches that pattern: exit if $ans =~ m/$foo/i; . . . while this matches anything but that pattern: exit if $ans !~ m/$f

Re: HoA building

2006-12-28 Thread Chad Perrin
relevant passage in perldoc -f split after I sent that message. Please, I know you're all trying to be helpful, but stop sending me or the list emails quoting perldoc -f split to point out what I missed the first couple times I checked it. Thanks. -- CCD CopyWrite Chad Perrin [

Re: HoA building

2006-12-28 Thread Chad Perrin
On Thu, Dec 28, 2006 at 02:01:54AM -0700, Chad Perrin wrote: > > Why doesn't perldoc -f split say anything about that? Never mind, I > guess that's a rhetorical question. Igor just pointed out to me that it is, in fact, in perldoc -f split, and I just managed to miss it when

Re: HoA building

2006-12-28 Thread Chad Perrin
On Thu, Dec 28, 2006 at 08:51:26AM +, Igor Sutton wrote: > 2006/12/28, Chad Perrin <[EMAIL PROTECTED]>: > > > >That makes sense, considering I just checked the tutorials at PerlMonks > >and discovered that, according to split(), ' ' and /\s+/ are exactly

Re: HoA building

2006-12-28 Thread Chad Perrin
t map " |$_| ", split /\s+/, $ln; > print map " |$_| ", split " ", $ln; > ' > |one| |two| |three| |four| > |one| |two| |three| |four| That makes sense, considering I just checked the tutorials at PerlMonks and discovered that, according to

Re: HoA building

2006-12-27 Thread Chad Perrin
On Wed, Dec 27, 2006 at 10:58:40PM -0700, Chad Perrin wrote: > On Wed, Dec 27, 2006 at 07:42:59PM -0500, M. Lewis wrote: > > John W. Krahn wrote: > > >M. Lewis wrote: > > >> > > >>while (my $ln = ){ > > >>chomp $ln; > > >>

Re: HoA building

2006-12-27 Thread Chad Perrin
x27; instead of /\s/ as the first argument to split: > > > > my ($prod, $flavor) = split ' ', $ln, 2; > > Ok, but why? Are they not the same? No, they're not. ' ' is a literal space. /\s/ matches any whitespace. -- CCD CopyWrite Chad Perrin [

Re: what's mistaken?

2006-12-26 Thread Chad Perrin
On Tue, Dec 26, 2006 at 07:27:12PM -0800, Travis Thornhill wrote: > Chad Perrin <[EMAIL PROTECTED]> wrote:On Tue, Dec 26, 2006 at 06:59:42PM > -0800, Travis Thornhill wrote: > > Try this instead: > > our $opt_h; > getopt('h); > > That satisfies both t

Re: what's mistaken?

2006-12-26 Thread Chad Perrin
stion: Is the -h option meant to be for "help"? If so, you may be interested to know that Getopt::Std provides a built-in --help option that can be used instead (or in addition). -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "A script is what you give the actors. A pr

Re: what's your most favourite feature of perl?

2006-12-26 Thread Chad Perrin
ed anywhere else I've been. Yeah, I agree: the community is the best thing about Perl. Considering how great some of the other features of the language are, that's really saying something. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] Brian K. Reid: "In computer science, we s

Re: run script on multiple files

2006-12-22 Thread Chad Perrin
ents." That may not suit your needs at all, though, since I don't know exactly how you need your file access to fit into the program. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] print substr("Just another Perl hacker", 0, -2); -- To unsubscribe, e-mail: [EMAIL PROT

Re: Displaying a user's group memberships

2006-12-21 Thread Chad Perrin
On Thu, Dec 21, 2006 at 06:24:53PM -0800, John W. Krahn wrote: > Chad Perrin wrote: > > On Thu, Dec 21, 2006 at 03:02:04PM -0700, Chad Perrin wrote: > >>I'm sure that could be made prettier by someone with better Perl mojo > >>than I have at the moment, and it co

Re: Displaying a user's group memberships

2006-12-21 Thread Chad Perrin
On Thu, Dec 21, 2006 at 03:02:04PM -0700, Chad Perrin wrote: > > I'm sure that could be made prettier by someone with better Perl mojo > than I have at the moment, and it could be made a bit simpler if all you > want is the gid for each group rather than the group name. I pos

Re: Displaying a user's group memberships

2006-12-21 Thread Chad Perrin
On Thu, Dec 21, 2006 at 01:25:01PM -0700, Tom Smith wrote: > Chad Perrin wrote: > > > >That's why I said you may as well either just use the id utility from > >the shell if you're not going to grab group memberships in an > >idiomatically Perlish way

Re: Learning Perl books

2006-12-21 Thread Chad Perrin
On Thu, Dec 21, 2006 at 10:23:57AM -0500, Robert Hicks wrote: > Chad Perrin wrote: > >On Tue, Dec 19, 2006 at 09:08:11AM -0800, Randal L. Schwartz wrote: > >>"Learning Perl on Win32 Systems" is still being published only because it > >>sells. It was based o

Re: Displaying a user's group memberships

2006-12-21 Thread Chad Perrin
On Thu, Dec 21, 2006 at 08:05:05AM -0700, Tom Smith wrote: > Dr.Ruud wrote: > >Chad Perrin schreef: > > > >>Of course, if you're going to call out of the Perl script to the id > >>utility, you may as well skip the Perl script entirely and just enter >

Re: Displaying a user's group memberships

2006-12-21 Thread Chad Perrin
On Thu, Dec 21, 2006 at 03:06:38AM -0800, John W. Krahn wrote: > Chad Perrin wrote: > > On Wed, Dec 20, 2006 at 05:28:46PM -0800, John W. Krahn wrote: > >> > >> Since you are only reading from /etc/group you are not picking up the > >> primary > >> g

Re: Displaying a user's group memberships

2006-12-21 Thread Chad Perrin
On Thu, Dec 21, 2006 at 08:08:07AM -0700, Tom Smith wrote: > > Yeah, the smiley may have clarified the intentions a little... . . . or it may have just looked like part of the Perl code. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] print substr("Just another Perl hac

Re: Displaying a user's group memberships

2006-12-21 Thread Chad Perrin
On Thu, Dec 21, 2006 at 11:23:15AM +0100, Dr.Ruud wrote: > Chad Perrin schreef: > > Dr.Ruud: > > >> TIMTOWTDI. On the shell machines of my provider (FreeBSD) the "id" > >> approach will work, and the "/etc/group" one won't. > > &g

Re: Displaying a user's group memberships

2006-12-21 Thread Chad Perrin
considering mentioning that appeared rather more obfuscated than Tom's example. Clever, though. Of course, in both cases, I might mention that you can eliminate a \n in a printed string by using the -l option in the shebang line. For your example, though, I guess the \n just adds to the &

Re: Displaying a user's group memberships

2006-12-21 Thread Chad Perrin
c/group you are not picking up the primary > group stored in /etc/passwd. Singling out the primary group wasn't a requirement for the Perl script, as far as I recall. If I'm mistaken, then yeah, you might want to check /etc/passwd for the primary group. If not, you'll get the prima

Re: Displaying a user's group memberships

2006-12-21 Thread Chad Perrin
h the -Gn switches, it works identically to the groups command. Just thought I'd mention. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "The ability to quote is a serviceable substitute for wit." - W. Somerset Maugham -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Displaying a user's group memberships

2006-12-21 Thread Chad Perrin
work, and the "/etc/group" one won't. I don't think that has anything to do with it being FreeBSD. I'm typing this from a FreeBSD machine, and it works just fine. Of course, if you're going to call out of the Perl script to the id utility, you may as well skip the P

Re: Displaying a user's group memberships

2006-12-20 Thread Chad Perrin
to do, this might yield greater reusability of code, but if that's not a concern for this script it really doesn't matter. For something as quick as looking up a single user's group memberships, resource footprint and processor time aren't really a concern. I guess this is

Re: foolprof regex

2006-12-20 Thread Chad Perrin
ading spaces before the word "name" must be at the beginning of the line. For that, use "^". Use "perldoc perlre" to learn more about it. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "It's just incredible that a trillion-synapse computer could

Re: Learning Perl books

2006-12-19 Thread Chad Perrin
rawberry Perl before now. Do you recommend it over ActiveState? I may have to give it a try the next time I boot a Windows machine (which means it may be a few months before I try it out). -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] print substr("Just another Perl hacker", 0, -2);

Re: perl script execution issue

2006-12-19 Thread Chad Perrin
> > -reddy. > > > At the prompt, type > > # perl -p -e 's/\r$//' < winfile.txt > unixfile.txt > > so if your script is called foo.pl, it is > > # perl -p -e 's/\r$//' < foo.pl > newfoo.pl I usually just use the dos2unix utility

Re: Displaying a user's group memberships

2006-12-18 Thread Chad Perrin
write with only basic understanding of the language and very simple understanding of Perl regex syntax, but I'm not providing code so that I don't just do your work for you. Let us know if you have any problems with the concepts. relevant perldocs: perldoc perlre perldoc -f split perldoc p

Re: Learning Perl books

2006-12-18 Thread Chad Perrin
itrarily ordered command line arguments. I've strayed from the main subject a touch. Back on topic: Learning Perl is one of the best books ever written, in any edition, for learning your way around a new programming language. I recommend it. Ignore the Win32 version. -- CCD CopyWrite Cha

Re: perl modules

2006-12-18 Thread Chad Perrin
rl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .). BEGIN failed--compilation aborted. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "The first rule of magic is simple. Don't waste your time waving your hands and hoppi

Re: my, my...

2006-12-15 Thread Chad Perrin
ly aren't. Python comes to mind, with variable scope that is sometimes defined as lexical by default even though technically it's a special case of dynamic local scope that just usually acts very similarly to lexical scoping. Hope that helps. -- CCD CopyWrite Chad Perrin [ http://cc

Re: [OT?] Re: Which module for web graph?

2006-12-14 Thread Chad Perrin
p like Flash and Quicktime aren't allowed, and everyone who disables Flash content viewing to avoid annoying ads. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "A script is what you give the actors. A program is what you give the audience." - Larry Wall -- To unsubs

Re: Which module for web graph?

2006-12-14 Thread Chad Perrin
n interface > to SWF Chart > (macromedia flash) and the appearance of these graphs is a bit more pleasing > on the eye. That's great, as long as you don't mind accessibility issues and excluding all potential visitors to your site who don't use a Flash plugin for

Re: Free PERL Editor

2006-11-24 Thread Chad Perrin
> available in open source tools. I have tried 'EngineSite Perl Editor > "Suja> -LITE' and 'PerlExpress' which I am not comfortable with. Kindly refer > "Suja> me some good bug free tools. > > GNU Emacs is my editor (lifestyle? :) of choice. We love yo

Re: What is 'new' doing?

2006-11-22 Thread Chad Perrin
On Wed, Nov 22, 2006 at 03:44:22AM -0500, Mathew Snyder wrote: > In this line of code what is 'new' doing? > my $users = new RT::Users(RT::SystemUser); Um . . . instantiating an object? -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "The measure on a man's

Re: Free PERL Editor

2006-11-21 Thread Chad Perrin
am not comfortable with. Kindly refer > me some good bug free tools. I rather like Vim, though I suspect you want something . . . else. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] unix virus: If you're using a unixlike OS, please forward this to 20 others and erase your system

Re: How to make a perl program to an exe file

2006-11-21 Thread Chad Perrin
is works, but if it works as well as the impression I have from what I've read so far, you could probably just write an entire program in a Perl module, then use that module from within an OCaml program, which you can then compile to a persistent binary executable. I have a sneaking suspi

Re: an easy way to know if a module is installed or not

2006-10-05 Thread Chad Perrin
use File::Spec::Functions; find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC; (watch the line-wrap) This recently came up in the PerlMonks chatterbox, too. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "The ability to quote is a serviceab

Re: Cleaning smart quotes, etc from data pasted to a form

2006-10-05 Thread Chad Perrin
On Thu, Oct 05, 2006 at 10:35:09AM -0500, Mumia W. wrote: > On 10/05/2006 09:48 AM, Chad Perrin wrote: > >On Thu, Oct 05, 2006 at 09:06:11AM -0500, Mumia W. wrote: > >>> > >>Perhaps you could look at the problem in reverse. Strip out all > >>characters t

Re: Cleaning smart quotes, etc from data pasted to a form

2006-10-05 Thread Chad Perrin
> that is not a digit, space, tab, alphanumeric character, period, or > comma and delete it. That won't work so well for characters that are garbage versions of good characters that are actually needed. Generally, quotes are there for a reason, for instance -- so just throwing away "

Re: Scope

2006-10-02 Thread Chad Perrin
resend. I'm glad *someone* sent it to the list at large, in case it's useful to more than just the OP. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] unix virus: If you're using a unixlike OS, please forward this to 20 others and erase your system partition. -- To unsu

Re: using local when appropriate

2006-09-29 Thread Chad Perrin
Dammit, I accidentally replied to the OP rather than the list (lo these many hours ago), and only just realized it. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] Amazon.com interview candidate: "When C++ is your hammer, everything starts to look like your thumb." -- To u

Re: Non-technical question

2006-09-21 Thread Chad Perrin
to transcribe what you're saying. And > then it gets mangled to "jim smith called - something about dollar > underwear". (pause for laughter) So, skip the mangling, just email us > directly. On the other hand, calling it "implicit scalar" doesn't lend i

[EMAIL PROTECTED]: Re: Quick question on code factoring]

2006-09-11 Thread Chad Perrin
I intended to send this to the list and accidentally replied directly to the person to whom I was replying. I figure it's worth reposting to the list. - Forwarded message from Chad Perrin <[EMAIL PROTECTED]> ----- From: Chad Perrin <[EMAIL PROTECTED]> To: Jen Spinney

Re: Quick question on code factoring

2006-09-11 Thread Chad Perrin
On Mon, Sep 11, 2006 at 05:37:15PM -0700, chen li wrote: > > What is the usage for "? () :" and where can I find > more about it? perldoc perlop -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] This sig for rent: a Signify v1.14 production from http://www.

Re: Quick question on code factoring

2006-09-11 Thread Chad Perrin
either empty or containing "$x[2]... depending on the result > of the condition test), but that seems clunky. There seems like there > should be a simpler way. Any thoughts? Thanks for any help! - Jen Do everything without a conditional except those two lines -- do them with an "u

Re: Summary for mean/average calculation in perl

2006-09-10 Thread Chad Perrin
/ @data; > > Depending on how you understand Perl and what progress > you are I prefer 6). I prefer 2, personally. A C library for something like this strikes me as optimal. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "The ability to quote is a serviceable substi

Re: How do I do this on Perl ...

2006-08-23 Thread Chad Perrin
t for qw(a e i o u)' Sorry, couldn't resist the call of plaid pants and electric carts. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] This sig for rent: a Signify v1.14 production from http://www.debian.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: [OT] Re: Regex find and replace - delete line

2006-07-24 Thread Chad Perrin
On Mon, Jul 24, 2006 at 07:35:03PM -0400, Mathew Snyder wrote: > Please lighten up. How many lumens is that? (Please don't top-post.) -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "There comes a time in the history of any project when it becomes necessary to shoot the

Re: Regex find and replace - delete line

2006-07-23 Thread Chad Perrin
something, I blame the fact that it's only six in the morning, but . . . . . . shouldn't that be "ne" instead of "eq"? -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] Brian K. Reid: "In computer science, we stand on each other's feet." -- To

Re: Putting file content into an array

2006-07-20 Thread Chad Perrin
se. That's my favorite. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] Brian K. Reid: "In computer science, we stand on each other's feet." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: array help

2006-07-20 Thread Chad Perrin
that is printed individually, thus applying the effects of -l to each array element rather than simply to the end of the array as with a line that reads merely: print @test; There are other ways to do it as well. TIMTOWTDI. relevant perldocs: perldoc perlop perldoc perlrun per

Re: MOVE ON ALREADY!!!

2006-07-16 Thread Chad Perrin
hered: > > Mr. Shawn H. Corey - calm guy, good Perl skills > Rob Dixon - calm guy, good Perl skills > Randal L. Schwartz - troller, good Perl skills > Chad Perrin- troller, don't know about skills For the record, my Perl skills are a little weak in a number of areas

Re: Randal L. Schwartz is Wrong

2006-07-12 Thread Chad Perrin
rest. Who do I talk to about banning trolls? Talk about Perl (or something related and somewhat interesting) or, please, kindly shut up. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "It's just incredible that a trillion-synapse computer could actually spend Saturday afternoon w

Re: Randla L. Schwartz is Wrong (WAS:write out filenames of files existing on a filesystem into afile)

2006-07-12 Thread Chad Perrin
gt; and I gotta peee... > > All fun aside, I have a Perl question, but I have learned not to "top > post" and NOT to hijack a thread... Thanks to all that have taught me > such. Thank you. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] print substr("

Re: Randal L. Schwartz is Wrong (WAS:write out filenames of files existing on a filesystem into afile)

2006-07-12 Thread Chad Perrin
bout ready to /dev/null YOUR emails, by now. See point 1. for why. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] print substr("Just another Perl hacker", 0, -2); -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: write out filenames of files existing on a filesystem into afile

2006-07-10 Thread Chad Perrin
ly, I'd like any apologies to happen off-list so we don't have to endure them. How about that object model topic? Does anyone have anything to say about that? -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "It's just incredible that a trillion-synapse computer coul

Re: Providing STDIN to a PIPEd call to perl

2006-07-05 Thread Chad Perrin
is written above, are on each iteration assigned to the $_ scalar variable. This is especially handy since, if you don't specify a filename, it defaults back to taking input from the keyboard as though you had used the STDIN filehandle. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org

Re: substr question

2006-06-25 Thread Chad Perrin
. A fourth argument can be used for operations that aren't relevant here. The end result is that you seem to have used substr() exactly the way it's meant to be used. perl -le "print substr 'Just another Perl hacker', 0, -2" -- CCD CopyWrite Chad Perrin [ http://

Re: Any PERL Decompiler / code ?

2006-06-24 Thread Chad Perrin
indeed a case of Perl scripts that have been packaged with a parser and encrypted to make it difficult to read the files. I'm afraid I haven't any help to offer, other than suggesting you get the guy who wrote it to decrypt it for you. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org

Re: Any PERL Decompiler / code ?

2006-06-23 Thread Chad Perrin
l free to send it to me, then. I'll see what I can see. How are you sure it's Perl? -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "The first rule of magic is simple. Don't waste your time waving your hands and hopping when a rock or a club will do." - McCloct

Re: Any PERL Decompiler / code ?

2006-06-23 Thread Chad Perrin
eg a file name alignscr.p - am sure that it is a perl code, but am not > able to open it on a vi editor - :( Have you checked file permissions? It might just be set to read-only for the user account you're using to try to read it. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org

Re: Handle date structured folders

2006-06-22 Thread Chad Perrin
ple files before using it on the real things if you care about whether you lose your data during testing. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] Ben Franklin: "As we enjoy great Advantages from the Inventions of others we should be glad of an Opportunity to serve others by an

Re: Another (hopefully more clear) plea for help with CSV data

2006-06-22 Thread Chad Perrin
n the script is run. Voila, it works. Did I misunderstand your point? Of course, this seems like a lot of unnecessary work, since it basically involves writing one's own simple DBMS query system, but it would seem to suit the OP's requirements. -- CCD CopyWrite Chad Perrin [ http://cc

Re: unscrambler speedup rewrite

2006-06-19 Thread Chad Perrin
On Mon, Jun 19, 2006 at 11:54:46PM -0400, Jeremy Kister wrote: > I wrote a word descrambler that works very well, but is very slow > compared to http://www.jumble.org Whew. Judging by the subject line, I was worried this was going to turn out to be spam. -- CCD CopyWrite Chad Perrin

Re: using (sharing) variables between perl files

2006-06-19 Thread Chad Perrin
e) that each separate Perl script parses to populate variables. You could even simply have one script call another, and get output from that other for use as variable data in the script that called it. The "best" way to do it in your case will vary, depending on what exactly you

Re: CGI script not showing the textbox

2006-06-14 Thread Chad Perrin
he perlop documentation. You can also check out a tutorial I wrote at PerlMonks a couple years ago, titled "quotes in Perl". I think it's pretty clear and helpful, but maybe I'm biased: http://www.perlmonks.org/?node_id=401006 A perhaps more "intuitive" URL for t

Re: modifying @INC permanently

2006-06-08 Thread Chad Perrin
lems when someone wants to use something written by someone else, or write something that makes use of a given module. That's probably why. It's certainly the reason that comes to mind for me. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "Real ugliness is not har

Re: Exec a script on one server that will exec other scripts on a different server..

2006-06-08 Thread Chad Perrin
the server? Is it more than one of the above? Is it something else entirely? I'm afraid your question isn't very clear. I don't even know if I have the information you actually want -- unless the "yes" answer to your "yes or no" question above is the answer yo

Re: accessor problem in OO

2006-05-29 Thread Chad Perrin
On Mon, May 29, 2006 at 06:39:57PM -0700, chen li wrote: > > > --- Chad Perrin <[EMAIL PROTECTED]> wrote: > > > On Mon, May 29, 2006 at 01:17:52PM -0700, chen li > > wrote: > > > Sorry but what I mean is "Beginning Perl" from > > > http

Re: accessor problem in OO

2006-05-29 Thread Chad Perrin
eren't talking about the Llama book, especially since it doesn't have any OOP instruction in it. I wasn't aware there was an official online version of Beginning Perl, though. Thanks for the URL -- it might come in handy. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] "A

Re: regex extraction problem

2006-05-28 Thread Chad Perrin
first two cells and to produce no undefined cells? > >> > >>@f = grep defined, /(x)(y)|(a)(b)/; > > > > yes. solves my problem. how did you find out about this? > > By programming in Perl for many years. :-) Did it also teach you why that's necessary?

Re: What are the differences between Perl and PHP when handling with Web pages

2006-05-26 Thread Chad Perrin
m very happy to be able to write my first admin scripts by myself. > The cpan.org et perlmonks.org are very helpful websites and so is this > mailing-list ;-) You're quite welcome. Best of luck. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] "There comes a time in the

Re: export script problem

2006-05-26 Thread Chad Perrin
On Fri, May 26, 2006 at 07:32:57AM -0500, Gomez, Juan wrote: > > do you realized this is a perl list? Maybe he wants to do it in Perl. Of course, it's pretty hard to tell from that email. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] "A script is what you giv

Re: What are the differences between Perl and PHP when handling with Web pages

2006-05-26 Thread Chad Perrin
ery good free resources like PerlMonks. It'll make you a better PHP programmer. Perl is particularly suited to this, since before PHP was its own programming language, it was just a toolkit for web development built using Perl. That's my take on it. Someone else is sure to have a take that

Re: clamav stats script help

2006-05-24 Thread Chad Perrin
ed May 24 18:33:52 > Html.Phishing.Bank.Gen503.Sanesecurity.06042004 FOUND Wed May 24 18:50:26 At a guess, I'd say those two lines indicated that something less than benevolent was found. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] "The first rule of magic is simple. Don't w

Re: What are the most successful applications of Perl? Thanks.

2006-05-23 Thread Chad Perrin
ussion thread. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] "The ability to quote is a serviceable substitute for wit." - W. Somerset Maugham -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: [OT]Re: export script problem

2006-05-22 Thread Chad Perrin
y fair, the code itself is only eleven lines. On the other hand, it's still eleven lines of VB in a Perl list, and the sig block is still sixteen lines long -- roughly four times the reasonable limit for a sig block. #!/usr/bin/perl -l use strict; use warnings; # do stuff like define

Re: reading a line at a time inefficient?

2006-05-16 Thread Chad Perrin
r something equally inconvenient. Scalability is good. Don't automatically assume the best case. Plan ah Whoops. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] "The measure on a man's real character is what he would do if he knew he would never be found out.&

Re: ssi and Perl/CGI

2006-05-15 Thread Chad Perrin
On Mon, May 15, 2006 at 12:07:42AM -0500, Sumo Wrestler (or just ate too much) wrote: > Chad Perrin wrote: > >[...] > >I'm still curious about why exec cgi works for a page generated > >entirely by the CGI script, but not for CGI script output that I want to > >in

Re: ssi and Perl/CGI

2006-05-15 Thread Chad Perrin
t me a message off-list (by accident?) stating that he was doing exactly the same thing I was trying to do, and it was working for him, so it should be working for me. He was right. I think that pretty much sums it up. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] "There comes a t

Re: ssi and Perl/CGI

2006-05-14 Thread Chad Perrin
On Sun, May 14, 2006 at 05:00:08PM -0600, Chad Perrin wrote: > On Sun, May 14, 2006 at 06:43:13PM -0400, Ricky Zhou wrote: > > > For your specific problem, try using > > How do I go about passing variables to the script via include virtual > without using cookies, then?

Re: ssi and Perl/CGI

2006-05-14 Thread Chad Perrin
l, though cgi seems to work great if all my page content is coming from the CGI script. Is there some specific difference in behavior between cmd and cgi in this of which I'm not aware? -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] "There comes a time in the history

ssi and Perl/CGI

2006-05-14 Thread Chad Perrin
ccomplish, but I've run out of ideas for the moment. Aside from asking the list, I'm also going to try taking a nap. Thanks in advance for any help. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] This sig for rent: a Signify v1.14 production from http://www.debian.org/

Re: object-oriented perl mailing list

2006-05-13 Thread Chad Perrin
nceptually and euphemistically) with your next point. > > And LPORM couldn't possibly have a successor without being restricted > to adults only (think about "++"). I think I'd buy that. Mmmm, adults-only Perl. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] "

Re: object-oriented perl mailing list

2006-05-12 Thread Chad Perrin
t has sorta been replaced in newer editions by a book called "Intermediate Perl", which is reportedly pretty much just a new edition of the same book -- though I haven't looked through it to double-check that. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] "It&#x

Re: array question

2006-05-09 Thread Chad Perrin
uage doesn't magically turn bad programmers into good programmers. . . . just one man's opinion. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] Ben Franklin: "As we enjoy great Advantages from the Inventions of others we should be glad of an Opportunity to serve others by a

Re: Setting variables with eval

2006-05-05 Thread Chad Perrin
es it > is best to use $x, $y, and $z or $i, $j, and $k. . . . or $foo, $bar, $baz, and $qux. When you start with foo, pretty much everyone immediately knows you're using metasyntactic variables for demonstration purposes. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] This

Re: generate list in increments of 10's

2006-05-03 Thread Chad Perrin
ompt him to learn so that he doesn't have to keep asking other people all the time. Dealing with people like us is REAL work. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] "The measure on a man's real character is what he would do if he knew he would never be found

Re: generate list in increments of 10's

2006-05-03 Thread Chad Perrin
oblem? That's the impression I get, too. In case it's not: I'd probably use a while loop with a less-than comparison and a simple statement that increments by ten inside the loop. As long as I don't see working code that doesn't look like homework, though, I don't th

Re: has key/value pairs

2006-05-03 Thread Chad Perrin
nd "if" wasn't a typo -- it might have been the result of writing code in MS Word with auto-capitalization turned on. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] print substr("Just another Perl hacker", 0, -2); -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

[merlyn.'[EMAIL PROTECTED]: Re: [OT] I give up with the reply-to business already]

2006-05-02 Thread Chad Perrin
raining! - End forwarded message - Whoops. I meant to send something to the list, and didn't. Oh well. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] Ben Franklin: "As we enjoy great Advantages from the Inventions of others we should be glad of an Opportunity to ser

Re: [OT] I give up with the reply-to business already

2006-05-02 Thread Chad Perrin
On Tue, May 02, 2006 at 08:28:06AM -0400, Ryan Frantz wrote: > > > -Original Message- > > From: Chad Perrin [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, May 02, 2006 4:37 AM > > To: Mr. Shawn H. Corey > > Cc: Chad Perrin; beginners@perl.org > > Sub

Re: [OT] I give up with the reply-to business already

2006-05-02 Thread Chad Perrin
On Mon, May 01, 2006 at 07:24:12PM -0400, Mr. Shawn H. Corey wrote: > On Mon, 2006-01-05 at 17:06 -0600, Chad Perrin wrote: > > In other words, I don't think blaming choice of mail client or mail user > > agent helps anything, especially since in many cases work conditions m

Re: [OT] I give up with the reply-to business already

2006-05-01 Thread Chad Perrin
ent or mail user agent helps anything, especially since in many cases work conditions may dictate one's choice of client or MUA. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] "The first rule of magic is simple. Don't waste your time waving your hands and hopping wh

  1   2   >