Re: Dynamically calling a subroutine

2007-02-12 Thread Chad Perrin
at a given moment. Best o' luck. -- 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http

Re: getopt

2007-01-24 Thread Chad Perrin
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 necessary to shoot the engineers and begin production. - MacUser

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 measure on a man's real

Re: Hello to Perl World

2007-01-02 Thread Chad Perrin
-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://ccd.apotheon.org ] print substr(Just another Perl

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 incredible that a trillion-synapse

Re: Negate a regular expression

2006-12-30 Thread Chad Perrin
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/$foo/i; -- CCD CopyWrite Chad Perrin [ http

Re: HoA building

2006-12-28 Thread Chad Perrin
, considering I just checked the tutorials at PerlMonks and discovered that, according to split(), ' ' and /\s+/ are exactly the same. Frankly, I find that a bit surprising. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] The ability to quote is a serviceable substitute for wit. - W. Somerset

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 the same. Frankly, I find that a bit

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 I looked through

Re: HoA building

2006-12-28 Thread Chad Perrin
the 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 [ http

Re: HoA building

2006-12-27 Thread Chad Perrin
) = 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 [ http://ccd.apotheon.org ] print substr(Just another Perl hacker, 0, -2); -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

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 = DATA){ chomp $ln; my ($prod, $flavor) = split /\s/, $ln, 2; You probably should use ' ' instead

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

2006-12-26 Thread Chad Perrin
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 stand on each other's feet. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: what's mistaken?

2006-12-26 Thread Chad Perrin
-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 program is what you give the audience. - Larry Wall -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

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 the strict pragma and the desire to use a scalar

Re: run script on multiple files

2006-12-22 Thread Chad Perrin
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 PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http

Re: Displaying a user's group memberships

2006-12-21 Thread Chad Perrin
. 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 this at the shell prompt: id -Gn username -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] The ability to quote is a serviceable substitute

Re: Displaying a user's group memberships

2006-12-21 Thread Chad Perrin
; print $1 if `groups $ARGV[0] 2/dev/null` =~ /$ARGV[0]\s*:\s*(.+)/; According to the manpage for groups on FreeBSD Release 6.1, it's deprecated in favor of the id utility -- and with the -Gn switches, it works identically to the groups command. Just thought I'd mention. -- CCD CopyWrite Chad

Re: Displaying a user's group memberships

2006-12-21 Thread Chad Perrin
/etc/group (but it won't be identified as any different from the rest of them). At least, that's how it works here. -- 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

Re: Displaying a user's group memberships

2006-12-21 Thread Chad Perrin
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 snoopy swearing appearance that seems to be your aim. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] unix virus: If you're using a unixlike OS, please

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. I don't think that has anything to do with it being FreeBSD

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 hacker, 0, -2

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 group stored in /etc/passwd. Singling out the primary

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 this at the shell prompt: id -Gn username

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 on the second edition of Learning Perl, which

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 -- the Perl code is likely to be more portable

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 posted a gid version here

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 could be made a bit simpler if all you want

Re: foolprof regex

2006-12-20 Thread Chad Perrin
about it. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] It's just incredible that a trillion-synapse computer could actually spend Saturday afternoon watching a football game. - Marvin Minsky -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: Displaying a user's group memberships

2006-12-20 Thread Chad Perrin
memberships, resource footprint and processor time aren't really a concern. I guess this is a long-winded way of saying It depends, but what you did looks okay to me. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] It's just incredible that a trillion-synapse computer could actually

Re: perl script execution issue

2006-12-19 Thread Chad Perrin
-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 for that. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] It's just incredible that a trillion-synapse computer

Re: Learning Perl books

2006-12-19 Thread Chad Perrin
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); -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: perl modules

2006-12-18 Thread Chad Perrin
/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 hopping when a rock or a club will do. - McCloctnick the Lucid

Re: Learning Perl books

2006-12-18 Thread Chad Perrin
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 Chad Perrin [ http://ccd.apotheon.org ] Ben Franklin: As we enjoy great Advantages from the Inventions of others we should be glad

Re: Displaying a user's group memberships

2006-12-18 Thread Chad Perrin
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 perlintro -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] The measure on a man's real character is what he would do if he knew he

Re: my, my...

2006-12-15 Thread Chad Perrin
a special case of dynamic local scope that just usually acts very similarly to lexical scoping. Hope that helps. -- 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

Re: Which module for web graph?

2006-12-14 Thread Chad Perrin
) 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 their browsers. For instance, me. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org

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

2006-12-14 Thread Chad Perrin
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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http

Re: Free PERL Editor

2006-11-24 Thread Chad Perrin
' 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 you anyway. Usually. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] Ben Franklin: As we enjoy great Advantages from the Inventions of others

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 real character is what he would

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

2006-11-21 Thread Chad Perrin
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 suspicion it's not that easy, though. -- CCD CopyWrite Chad Perrin

Re: Free PERL Editor

2006-11-21 Thread Chad Perrin
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 partition. -- To unsubscribe, e-mail: [EMAIL

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

2006-10-05 Thread Chad Perrin
of good characters that are actually needed. Generally, quotes are there for a reason, for instance -- so just throwing away smart quotes rather than replacing them with standard vertical ASCII quotes might not be desirable. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] A script is what

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 that are not in a certain set; e.g., you might take

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

2006-10-05 Thread Chad Perrin
::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 serviceable substitute for wit. - W. Somerset

Re: Scope

2006-10-02 Thread Chad Perrin
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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

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 unsubscribe, e

Re: Quick question on code factoring

2006-09-11 Thread Chad Perrin
$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 unless. -- CCD CopyWrite Chad Perrin [ http

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.debian.org/ -- To unsubscribe, e

[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 [EMAIL PROTECTED] Subject

Re: Summary for mean/average calculation in perl

2006-09-10 Thread Chad Perrin
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 substitute for wit. - W. Somerset Maugham -- To unsubscribe, e-mail: [EMAIL PROTECTED

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

2006-08-23 Thread Chad Perrin
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 commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org

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 engineers

Re: Regex find and replace - delete line

2006-07-23 Thread Chad Perrin
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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http

Re: Putting file content into an array

2006-07-21 Thread Chad Perrin
on. You could always use while () for that. For instance: #!/usr/bin/perl use strict; use warnings; my @foo; push(@foo, $_) while (); Then, just call your script with a filename: $ scriptname filename There are other ways as well, of course. That's my favorite. -- CCD CopyWrite Chad

Re: array help

2006-07-20 Thread Chad Perrin
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 perldoc perltrap perldoc perlvar perldoc -f join perldoc -f print -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] The measure

Re: MOVE ON ALREADY!!!

2006-07-16 Thread Chad Perrin
, 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, somewhat strong in others. I get to participate both

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

2006-07-13 Thread Chad Perrin
. 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: Randla L. Schwartz is Wrong (WAS:write out filenames of files existing on a filesystem into afile)

2006-07-13 Thread Chad Perrin
... 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(Just another Perl hacker, 0, -2); -- To unsubscribe, e-mail

Re: Randal L. Schwartz is Wrong

2006-07-13 Thread Chad Perrin
(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 watching a football game. - Marvin Minsky -- To unsubscribe, e-mail: [EMAIL

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

2006-07-10 Thread Chad Perrin
? 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 could actually spend Saturday afternoon watching a football game. - Marvin Minsky -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Providing STDIN to a PIPEd call to perl

2006-07-05 Thread Chad Perrin
, as the example loop 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

Re: substr question

2006-06-25 Thread Chad Perrin
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://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

Re: Any PERL Decompiler / code ?

2006-06-24 Thread Chad Perrin
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 ] The ability to quote is a serviceable substitute for wit. - W

Re: Any PERL Decompiler / code ?

2006-06-23 Thread Chad Perrin
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 ] This sig for rent

Re: Any PERL Decompiler / code ?

2006-06-23 Thread Chad Perrin
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. - McCloctnick the Lucid -- To unsubscribe, e

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

2006-06-22 Thread Chad Perrin
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://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. - Thomas

Re: Handle date structured folders

2006-06-22 Thread Chad Perrin
. -- 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 any Invention of ours, and this we should do freely and generously. -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: unscrambler speedup rewrite

2006-06-20 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 [ http

Re: using (sharing) variables between perl files

2006-06-19 Thread Chad Perrin
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 doing with your Perl scripts. -- CCD CopyWrite Chad Perrin [ http

Re: CGI script not showing the textbox

2006-06-14 Thread Chad Perrin
I'm biased: http://www.perlmonks.org/?node_id=401006 A perhaps more intuitive URL for the PerlMonks tutorial is this: http://www.perlmonks.org/?node=quotes+in+Perl That should help somewhat. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] unix virus: If you're using a unixlike OS

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

2006-06-08 Thread Chad Perrin
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 you want. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] Real ugliness is not harsh-looking

Re: modifying @INC permanently

2006-06-08 Thread Chad Perrin
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 harsh-looking syntax, but having to build programs out

Re: accessor problem in OO

2006-05-29 Thread Chad Perrin
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 script is what you give the actors. A program is what you give

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://learn.perl.org/library/beginning_perl/ And BTW I have a hard copy

Re: regex extraction problem

2006-05-28 Thread Chad Perrin
teach you why that's necessary? -- 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 any Invention of ours, and this we should do freely and generously

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

2006-05-26 Thread Chad Perrin
that completely disagrees. -- Chad Perrin [ CCD CopyWrite | 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 commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org

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 give the actors

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

2006-05-26 Thread Chad Perrin
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 history of any project when it becomes

Re: clamav stats script help

2006-05-24 Thread Chad Perrin
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 waste your time waving your hands and hopping

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

2006-05-23 Thread Chad Perrin
. -- 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
subroutines and variables while ($conscious) { (refill($pint) next) if empty; drink_from($pint); print I've had . . . , $stomach++, pints; } print Drunken golf is funner.; -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] The measure on a man's real character is what he would do

Re: reading a line at a time inefficient?

2006-05-16 Thread Chad Perrin
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. - Thomas McCauley -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: ssi and Perl/CGI

2006-05-15 Thread Chad Perrin
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 time in the history of any project when it becomes necessary to shoot the engineers and begin

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 include in the middle of a page of otherwise

ssi and Perl/CGI

2006-05-14 Thread Chad Perrin
. 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/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: ssi and Perl/CGI

2006-05-14 Thread Chad Perrin
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 of any project when it becomes necessary to shoot the engineers

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 !--#include virtual=/cgi-bin/bar.pl -- How do I go about passing variables to the script via include virtual without using

Re: object-oriented perl mailing list

2006-05-13 Thread Chad Perrin
) 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 ] The ability to quote is a serviceable substitute for wit

Re: object-oriented perl mailing list

2006-05-12 Thread Chad Perrin
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's just incredible that a trillion-synapse computer could

Re: array question

2006-05-09 Thread Chad Perrin
. -- 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 any Invention of ours, and this we should do freely and generously. -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Setting variables with eval

2006-05-05 Thread Chad Perrin
, 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 sig for rent: a Signify v1.14

Re: has key/value pairs

2006-05-03 Thread Chad Perrin
that trailing slash is also a typo, And you really meant this ... Apologies, Charles, I accidentally sent that off-list. So, resend: Maybe the capitalization of for and 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

Re: generate list in increments of 10's

2006-05-03 Thread Chad Perrin
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 think I'll offer working code in return. -- Chad Perrin

Re: generate list in increments of 10's

2006-05-03 Thread Chad Perrin
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 out. - Thomas McCauley -- To unsubscribe, e-mail: [EMAIL PROTECTED

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 may dictate one's choice

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 Subject: Re: [OT] I give up with the reply-to business

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

2006-05-02 Thread Chad Perrin
for onsite and open-enrollment Perl training! - 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

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

2006-05-01 Thread Chad Perrin
, I think, is the important part of all this. -- 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 any Invention of ours, and this we should do freely

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

2006-05-01 Thread Chad Perrin
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 when a rock or a club will do. - McCloctnick the Lucid -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

  1   2   >