Re: Writing a daemon that runs on a schedule

2012-05-15 Thread Randal L. Schwartz
Lorenzo == Lorenzo Thurman lore...@thethurmans.com writes: Lorenzo I'd like to write a perl daemon that runs every hour. cron(8) perhaps? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl

Re: Scraping non-html webpage in Perl

2012-05-15 Thread Randal L. Schwartz
is. What is the MIME type? If it's flash based, you're probably out of luck. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http

Re: Template toolkit issue [SOLVED]

2012-05-08 Thread Randal L. Schwartz
hosting Lesley solutions available e.g. via godaddy, fasthosts and the like. Right, and those *can't* be mod_perl, for reasons previously described. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn

Re: Template toolkit issue [SOLVED]

2012-05-07 Thread Randal L. Schwartz
Bill == Bill Stephenson bi...@ezinvoice.com writes: Bill Using CGI.pm with HTML::Template is still a very fast and Bill efficient way to develop web apps. And CGI.pm is at the cornerstone of my CGI::Prototype framework, still in production use on many websites. -- Randal L. Schwartz

Re: Template toolkit issue [SOLVED]

2012-05-07 Thread Randal L. Schwartz
if there are any. mod_perl implies dedicated servers (you *cannot* share mod_perl like you can share mod_php). So any hosting company (of which there are hundreds) that offers dedicated servers effectively offers mod_perl. I'm sure those aren't hard to find. :) -- Randal L. Schwartz - Stonehenge

Re: Free Fundamentals of Perl Programming course

2012-03-27 Thread Randal L. Schwartz
'lesleyb' == 'lesleyb' lesl...@herlug.org.uk writes: 'lesleyb' http://alison.com/courses/Perl-Programming?utm_source=outbound+marketingutm_medium=emailutm_campaign=new_courses_11_perl_programming I like how the modules isn't even sorted. Professional work there. :) -- Randal L. Schwartz

Re: Perl Module to parse any other Perl script/module to fetch stats about data-structures

2012-02-13 Thread Randal L. Schwartz
[2] http://search.cpan.org/~adamk/PPI-1.215/lib/PPI.pm -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http

Re: Guidance for a New Programmer/Perl User

2011-12-19 Thread Randal L. Schwartz
stable. :) Perhaps the word you're looking for is usable for *my* applications. But to answer that, you must first define your requirements. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix

Re: extracting email addresses from a file

2011-12-06 Thread Randal L. Schwartz
@something...@ Rob somewhere.info this is technically a valid email address False. You cannot have consecutive unquoted . in your address: this.is...@example.com this..is.not...@example.com I didn't read the rest, since you already went off track twice up to here. -- Randal L. Schwartz

Re: Chromatics - Why is funding Perl So Hard

2011-11-23 Thread Randal L. Schwartz
but the unmaintained poor scripts that could Octavian be found on the net will stop working and they won't promote Octavian an old and bad programming style. This is called Perl 6. Already here, or coming soon, depending on your definitions. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1

Re: Help pulling data from website

2011-10-26 Thread Randal L. Schwartz
it from our fully-composed web pages. Ethics, sir. A good thing to have. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http

Re: In search of a list class with unusual accessors

2011-10-20 Thread Randal L. Schwartz
; if (wantarray) { return @$self; } else { return $self; } } } Untested, but I think I got most of it right. Passes use strict, but not use warnings, because I think use warnings is dumb. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer

Re: don't know where to start??? comparing files

2011-10-18 Thread Randal L. Schwartz
Shawn == Shawn H Corey shawnhco...@gmail.com writes: Shawn On 11-10-14 02:08 AM, Randal L. Schwartz wrote: Because this uses*my* environment when I run*your* Perl script. That's broken. Shawn Then you should un-break your environment. I can help you if Shawn you're using Linux. If you're

Re: How to create randomly generated emails

2011-10-18 Thread Randal L. Schwartz
that are good to read up on for automation. One of my few CPAN contributions, Inline::Spew, might do the trick nicely. Came from the column at http://www.stonehenge.com/merlyn/LinuxMag/col04.html -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com

Re: Installing CPAN Params::Validate and DateTime on Mac OS X 10.6.8

2011-10-18 Thread Randal L. Schwartz
need help with your particular mail/news/thread reader, please consult the appropriate documentation. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy

Re: don't know where to start??? comparing files

2011-10-14 Thread Randal L. Schwartz
Dermot == Dermot paik...@gmail.com writes: Dermot On 13 October 2011 03:07, Randal L. Schwartz mer...@stonehenge.com wrote: Shawn == Shawn H Corey shawnhco...@gmail.com writes: Shawn #!/usr/bin/env perl Please.  Don't. Dermot This is quite relevant for me at the moment. I have a couple

Re: don't know where to start??? comparing files

2011-10-12 Thread Randal L. Schwartz
Shawn == Shawn H Corey shawnhco...@gmail.com writes: Shawn #!/usr/bin/env perl Please. Don't. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy

Re: How to get the multiselect select box or checkbox element values WITHOUT using CGI module

2011-10-01 Thread Randal L. Schwartz
reason from you yet. Just use CGI.pm. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com

Re: How to get the multiselect select box or checkbox element values WITHOUT using CGI module

2011-09-30 Thread Randal L. Schwartz
Rajeev == Rajeev Prasad rp.ne...@yahoo.com writes: Rajeev without using CGI.pm Whenever someone says without $BEST_WAY_TO_DO_IT, I'm seriously motivated to say why not? what is the restriction?. So, why not? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer

Re: Can't use string (1) as a HASH ref while strict refs

2011-09-27 Thread Randal L. Schwartz
and contain the damage caused by misinformation. You were spreading misinformation to others. If my reply to you had no impact on you, that is sad, but at least the others reading this thread will be more enlightened. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer

Re: Can't use string (1) as a HASH ref while strict refs

2011-09-21 Thread Randal L. Schwartz
wouldn't have had to write this entire ignorant reply or waste my time replying to it. :( -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See

Re: Can't use string (1) as a HASH ref while strict refs

2011-09-20 Thread Randal L. Schwartz
{ ... }; if ($@) { ... } then you *need* to start using Try::Tiny. See especially the section beginning BACKGROUND on the Try::Tiny manpage. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting

Re: Clarification on the use of my

2011-09-16 Thread Randal L. Schwartz
to define it. That's *why* you should use the *proper* words. No communication without that. For the record, my and our have *precisely* the same scoping rules. The variable name they introduce has different bindings, however. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777

Re: Clarification on the use of my

2011-09-16 Thread Randal L. Schwartz
to time here... ... and take a break. please. go away for a bit. chill out. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http

Re: loop break condition

2011-08-25 Thread Randal L. Schwartz
it happens so often. Can you give an example from your old code where you accidentally clobbered $_? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc

Re: PCRE: Use backreference in pattern repetition bracket

2011-08-25 Thread Randal L. Schwartz
give you Perl answers that have nothing to do with PCRE. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http

Re: loop break condition

2011-08-25 Thread Randal L. Schwartz
open that can of worms here.) print Just another Perl hacker,; # the original -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http

Re: Find and Replace in Textfile

2011-08-22 Thread Randal L. Schwartz
John == John W Krahn jwkr...@shaw.ca writes: John ?Dood? s/Dood/Dude/; Deprecated in 5.14. Replace with m?Dood? and you're good though. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk

Re: loop break condition

2011-08-22 Thread Randal L. Schwartz
, as everyone else's answer gave, even though they didn't explicitly call this out. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http

Re: 3-argument open on STDIN

2011-08-22 Thread Randal L. Schwartz
; open my $handle, - or die; Don't let anyone tell you Always use 3-arg open unless they also footnote it with unless you have no variables involved. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk

Re: How to grab last element of array from split with no temporary variables?

2011-08-17 Thread Randal L. Schwartz
NOT understand the DAMAGE they are doing to Perl's perception outside the Perl community, and I wish they'd damn well stop. /rant -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting

Re: How to grab last element of array from split with no temporary variables?

2011-08-12 Thread Randal L. Schwartz
John == John W Krahn jwkr...@shaw.ca writes: John split() uses @_ by default so you could just say: That's deprecated though, if not already gone. (Looks gone in Perl 5.14.) It was a readily-admitted misfeature. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095

Re: regexp validation (arbitrary code execution) (regexp injection)

2011-06-02 Thread Randal L. Schwartz
can take nearly forever to fail.) See perldoc perlre for more details. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http

Re: practical perl guides

2011-05-31 Thread Randal L. Schwartz
Microsoft. You should make use of the Shlomi latest version of perl 5 available for it - namely 5.12.x , as Shlomi 5.10.x was recently end-of-lifed, and there's now perl-5.14.x. And I'm interviewing Curtis Jewell for FLOSS Weekly in a few weeks! Yeay! -- Randal L. Schwartz - Stonehenge

Re: Nature of this list

2011-04-23 Thread Randal L. Schwartz
. And now I've burned another hour on this issue, when I could have been productively helping other people. {sigh} That's the *real* cost of this. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl

Re: Nature of this list

2011-04-23 Thread Randal L. Schwartz
someone to task for answering badly. (Turns out they hadn't, but that wasn't clear from their post.) Therefore, you're safe from my wrath since you'd only be asking questions and not trying to answer someone else. No promises about Uri though. :) -- Randal L. Schwartz - Stonehenge Consulting Services

Re: Nature of this list

2011-04-22 Thread Randal L. Schwartz
the post you made. See http://www.nntp.perl.org/group/perl.beginners/2009/08/msg108709.html I'll let my words stand for themselves. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting

Re: Nature of this list

2011-04-22 Thread Randal L. Schwartz
APPLY. IT DOESN'T APPLY TO YOU. GET IT? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com

Re: Nature of this list

2011-04-21 Thread Randal L. Schwartz
situation, and get hired and rehired to teach. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com

Re: Nature of this list

2011-04-19 Thread Randal L. Schwartz
. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion -- To unsubscribe, e-mail

Re: Nature of this list

2011-04-19 Thread Randal L. Schwartz
, they won't be able to submit their code for review regardless of how much their ego is invested in it. And down that path lies security breaches and thedailywtf.com submissions. I have no tolerance for that. I'm trying to make the world a better place, one correction at a time. :) -- Randal L

Re: Nature of this list

2011-04-19 Thread Randal L. Schwartz
Shawn == Shawn H Corey shawnhco...@ncf.ca writes: Shawn PS: If you don't like my comment, grow a thick skin! No offense taken. It says a lot more about you than it does about me. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http

Re: Nature of this list

2011-04-19 Thread Randal L. Schwartz
Robert == Robert sigz...@gmail.com writes: Robert Criticizing a man's omelettes is going too far!!! Dem's fighting Robert words! :) Egg-cellent point! :-) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com

Re: Mix of English and Cyrillic Characters

2011-04-04 Thread Randal L. Schwartz
. And if you have it, perlunitut and perlunifaq. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com

Re: shift oo

2011-03-22 Thread Randal L. Schwartz
nice to spell that out too, since there's a wealth of info on that already. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http

Re: Newbie needs help

2011-03-22 Thread Randal L. Schwartz
using the one from NMS. Even Matt now tells you to go get NMS: http://www.scriptarchive.com/nms.html Yes, Matt's a good guy... even he knows when he's been beaten. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http

Re: Syntax Errors

2010-12-26 Thread Randal L. Schwartz
script. Windows users will have to step in here, since I have never been one. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http

Re: Syntax Errors

2010-12-26 Thread Randal L. Schwartz
Sheppy between *nix and Windows. Again, that's not something Perl *proper* is doing. See perldoc perldiag. Note how infrequently syntax error appears, and if it's Perl proper, there's some sort of additional helpful information. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503

Re: regexp matching nummeric ranges

2010-12-13 Thread Randal L. Schwartz
Kammen == Kammen van, Marco, Springer SBM NL marco.vankam...@springer.com writes: Kammen What am I doing wrong?? Using a regex when something else would be much better. Stop trying to pound a nail in with a wrench handle. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1

Re: Help me learn Closures.

2010-11-13 Thread Randal L. Schwartz
Matthew == Matthew Young mab...@gmail.com writes: Matthew What are closures? How are they used? When should they be used? Where Matthew can I learn more about them? If you can borrow (or buy :) a copy of Intermediate Perl, I have an entire section on closures in there. -- Randal L. Schwartz

Re: a Loop constructing the URLs to use LWP::UserAgent repeatedly up to 10 thousand times

2010-10-24 Thread Randal L. Schwartz
have their permission? Can't you get the data some other way other than generating an entire web page (with likely a lot of common elements) just so you can pick out the juicy bits? This is almost always the *wrong* way to do this task, on many levels. -- Randal L. Schwartz - Stonehenge

Re: Need Regex for phone number

2010-09-24 Thread Randal L. Schwartz
lotug == lotug erne...@ernestoreyes.com writes: lotug I need regex code to identify 3108222400 phone number. This question was posted (with the same vagueness) to comp.lang.perl.misc. Check out some of the answers there. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1

Re: Why perl lost steam...

2010-09-21 Thread Randal L. Schwartz
language here]. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

Re: [PBML] Help needed in recursion with objects in perl !

2010-08-06 Thread Randal L. Schwartz
probably just want to look at Graph in the CPAN. Lots and lots and lots of graph traversal things already worked out for you. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting

Re: ipv4 to ipv6 conversion

2010-08-05 Thread Randal L. Schwartz
the same wires, often. Continuing the analogy, yes there are directories where I might look up an address or phone number and get the other, but certainly not completely reliable or available. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com

Re: One new Recipe has arrived: When shall we use default variables?

2010-06-28 Thread Randal L. Schwartz
a comment about the type and purpose of each parameter. Sure you can do that inside a my ($x, $y, $z) list, but comments inside a () always scares me a bit 3) easily add an array to capture the remainder of the input values, if it's a varargs style function. -- Randal L. Schwartz

Re: A subroutine to find every occurrence of a substring in a string?

2010-06-12 Thread Randal L. Schwartz
had me up to here. Why? Why a *subroutine*? That's like saying I really like variable names, but only if they start with a consonant... not a vowel! -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk

Re: Inverting a hash

2010-05-09 Thread Randal L. Schwartz
L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion -- To unsubscribe, e

Re: Teaching Perl

2010-05-05 Thread Randal L. Schwartz
. You could add a function called doors() that plays The Doors. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http

Re: unless with AND

2010-04-29 Thread Randal L. Schwartz
is. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

Re: Writing Perl scripts to run on any OS'es

2010-04-19 Thread Randal L. Schwartz
and every sub newbie01 that I have. perldoc perlport is all about Writing portable Perl. If you start by reading that, and *then* have questions, come back here with those questions. It's a lot more than you have brought up. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503

Re: Object Oriented

2010-03-24 Thread Randal L. Schwartz
) is Intermediate Perl. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside

Re: question on software development

2010-03-07 Thread Randal L. Schwartz
you say windows and not OSX or X11? How did the rest of the thread know it was Windows? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc

Re: Geeky way to wish Happy Birthday through Perl

2010-01-19 Thread Randal L. Schwartz
just be an inspiration, I presume. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk

Re: Geeky way to wish Happy Birthday through Perl

2010-01-19 Thread Randal L. Schwartz
interpret that correctly. Parag Also not a relevant question to ask here - but has anyone tried Parag installing Ubuntu on Mac. ;-) Yes, and they're generally unhappy. Nothing supports Mac hardware like OSX. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer

Re: Geeky way to wish Happy Birthday through Perl

2010-01-18 Thread Randal L. Schwartz
technique to your birthday message. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk

Re: How to get unresolved cwd?

2009-12-29 Thread Randal L. Schwartz
what you're actually asking for. If you want to know how did the user get there, you'll need to have a trail of what they did some how, which may not be available. If you just want to know where am I, then please accept the resolved name as your current location. -- Randal L. Schwartz

Re: Clone an object

2009-12-28 Thread Randal L. Schwartz
Christoph == Christoph Friedrich christ...@christophfriedrich.de writes: Christoph My Big Problem is that I must copy an object to do a backtracking Christoph method (I am going to develop a sudoku solver). Then your object should know how to clone itself. -- Randal L. Schwartz - Stonehenge

Re: Please help me recover my Perl script.

2009-12-25 Thread Randal L. Schwartz
to Windows. Perhaps you should be using a more programmer-friendly operating system. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http

Re: Git Talk by Randal

2009-12-20 Thread Randal L. Schwartz
. [blush] -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

Re: cgi and absolute filenames

2009-12-20 Thread Randal L. Schwartz
opening foo when you're running a CGI script will create a file foo in the same dir as the script. However, a good defensive programmer will not count on that, and instead specify absolute paths, or use chdir at the beginning of the script to make relative names work. -- Randal L. Schwartz - Stonehenge

Re: why don't if (*.foo) and while(*foo.) work together??

2009-12-02 Thread Randal L. Schwartz
over all but first print; } } Much cleaner, and none of the state issues. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http

Re: return {}-{'name'};

2009-11-30 Thread Randal L. Schwartz
to it at Dermot http://perldesignpatterns.com/?PerlDesignPatterns I don't know. It's just something I do. If others find it useful, it's up to them to name it. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn

Re: A simple question about the Perl line

2009-11-27 Thread Randal L. Schwartz
have no idea yet~~ Simply: perl -pe 'chomp; $_ .= ' input output -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http

Re: return {}-{'name'};

2009-11-24 Thread Randal L. Schwartz
it: return $cache{$key} ||= do { my $result; ... .. complex code .. $result = $something; .. $result; }; -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting

Re: return {}-{'name'};

2009-11-17 Thread Randal L. Schwartz
on $input; last expression is value; }; } Yes, in 5.10, this can be simplified, but I find 5.8 to still be the dominant Perl. This also presumes that a false value is never needed to be cached. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer

Re: return {}-{'name'};

2009-11-17 Thread Randal L. Schwartz
. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

Re: Emulating Sort through Perl

2009-10-30 Thread Randal L. Schwartz
perlmonks exchange, and the code I produced which you quoted. We *are* human beings out here. Not just help-desk employees. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting

Re: A Revised Logo for Perl

2009-10-26 Thread Randal L. Schwartz
! -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion -- To unsubscribe, e

Re: Perl Questions

2009-10-10 Thread Randal L. Schwartz
straight for the web, the llama isn't for you either, so I'm not surprised of the misfit. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc

Re: Perl Questions

2009-10-06 Thread Randal L. Schwartz
a book, A two-L Llama for the look, but to whom we owe it all, is the three-L Larry Wall! :-) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing

Re: Perl Questions

2009-10-06 Thread Randal L. Schwartz
Uri == Uri Guttman u...@stemsystems.com writes: RLS == Randal L Schwartz mer...@stonehenge.com writes: RLS In the preface of the first edition of the Llama, I composed the RLS following poem: RLS A one-L Randal wrote a book, RLS A two-L Llama for the look, RLS but to whom we owe it all, RLS

Re: Burnt Camel Club

2009-09-22 Thread Randal L. Schwartz
Ian == Ian pcs...@gmail.com writes: Argh! Yes I can't spell!!! :-O And notice, I didn't correct it. But if someone else had corrected it wrong, I would have corrected them quickly. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com

Re: Burnt Camel Club

2009-09-21 Thread Randal L. Schwartz
. Otherwise, I tend not to talk... plenty of other people here to give answers. I only doublecheck answers anymore. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical

Re: Ternary operator

2009-09-15 Thread Randal L. Schwartz
for Perl6 has been published, if ever. Same thing for the llama/alpaca... we're on hold, waiting for Perl6 to get out of toy stage and into a useful beta state. The next llama will be for Perl6. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com

Re: Ternary operator

2009-09-14 Thread Randal L. Schwartz
to a conclusion that was unfounded. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside

Re: CGI and persistent data (without Storable)

2009-08-28 Thread Randal L. Schwartz
. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion -- To unsubscribe

Re: Exploiting the Perl

2009-08-28 Thread Randal L. Schwartz
Steve == Steve Bertrand st...@ibctech.ca writes: Steve My last question, rephrased to be direct-to-the-point: Multi-part Steve howto, or STFU if it's not possible request: Just a why would help. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer

Re: source code for builtin functions

2009-08-27 Thread Randal L. Schwartz
; *up++ = *down; *down-- = (char)tmp; } (void)SvPOK_only_UTF8(TARG); } SP = MARK + 1; SETTARG; } RETURN; } -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777

Re: Perl expert

2009-08-20 Thread Randal L. Schwartz
. Be truthful here. You can be at any expertise, and provide an answer (right or wrong), but don't *lie* about your level of confirmation for the result. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk

Re: Perl expert

2009-08-20 Thread Randal L. Schwartz
*... No harm in that. No shame in that. Just disclose, please. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http

Re: Perl expert

2009-08-20 Thread Randal L. Schwartz
with certainty means they're staking their Peter professional reputation on the quality of the answer and you can place Peter an enormous amount of faith in its accuracy. Thanks Peter, saying the same thing I also just posted, but better. :) -- Randal L. Schwartz - Stonehenge Consulting Services

Re: Perl expert

2009-08-19 Thread Randal L. Schwartz
that I haven't had experience with, unless I preface my answer with I think... so that Smarter People(tm) can check my work. If only everyone followed that rule, life would be simpler. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http

Re: Coding best practices

2009-08-14 Thread Randal L. Schwartz
about it :) Of course, PBP would recommend q{}. :-) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http

Re: Coding best practices

2009-08-14 Thread Randal L. Schwartz
is actually doing. http://www.stonehenge.com/merlyn/LinuxMag/col76.html -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http

Re: Need some advice on learning perl

2009-08-09 Thread Randal L. Schwartz
on HOW? I'd suggest reading all 255 of my magazine articles at http://www.stonehenge.com/merlyn/columns.html. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing

Re: file uploader

2009-08-03 Thread Randal L. Schwartz
(rightfully) barfs long before that. Why do you think that you want to use HTTP for 2GB uploads, especially since you're trying to get the browser out of the picture? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com

Re: file uploader

2009-08-03 Thread Randal L. Schwartz
really don't want to do that. Use a restartable protocol, like FTP, or rsync. HTTP was not meant to do this. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical

Re: PLEASE STOP SENDING MIALS

2009-07-24 Thread Randal L. Schwartz
they are, but they can't be good. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

Re: Edit a config file using perl cgi script

2009-07-09 Thread Randal L. Schwartz
's/^Key1=/Key1=NewValue1/' configfile.cfg -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com

  1   2   3   4   5   6   7   8   9   10   >