• Commented on Using the Record Separator
    There's a very good explanation of this at
  • Commented on Using the Record Separator
    Without seeing your code I can't be certain that this is the answer to your problem. However, it seems likely that it is. local $var essentially hides a variable with another variable that has the same name. That original variable...
  • Commented on Perl vs Shell Scripts
    I too find myself using bash for most of my scripting needs and have wondered too if it's mostly inertia. Part of my inertia is my $USRLIB/ which is a small function library that makes my shell scripts look like...
  • Commented on Fun with Git
    It would probably make more sense to use the --porcelain option to git status as that is guaranteed not to change between versions of git Also, it is unnecessary to use grep x | awk as awk is designed to...
  • Commented on CPAN modules for spelling out numbers in English
    Your ideas about what is American vs. British are not entirely consistent with usage across this rather vast country. Growing up in North Carolina, everyone used 'minus' which you describe as British, and most people put an and between the...
  • Commented on Managing my shell setup
    I've been thinking about ways to consolidate my various computer setups, and this is very helpful. Thanks! Another related idea is to provide a way for a single .bashrc (and bashrc.d) to provide some custom settings amidst the same across...
  • Commented on Exploratory one-liners with less typing
    This is cool. If you use it often, maybe pi, which has the added benefit that using tab completion in the shell will still give you a space after perl if you don't want to use the alias. I would...
  • Commented on Introduction to + Text::Table
    You should know that under US and International law, work produced by someone is immediately copyrighted by that individual regardless of whether that producer makes any claim or marks it in any way (that is, they don't have to have...
  • Commented on perl references in a while loop
    The range in the while loop always returns true, which means that the while loop is never exited. until is checked to see if the statement is false and so is equivalent to while ($x >= 25) the lable: and...
  • Commented on Removing database abstraction
    An option that works quite well for me is for every thing you do with the database, wrap that in it's own function. You can even create your own module and consequently namespace, which contains the database functions. That way,...
  • Commented on Help name my code! I am terrible at it.
    The problem with 'cradle' is that a cradle wraps the user, whereas it is the backend that is being 'sheathed', though I don't like that word in particular. Something along the lines of NAMEx::muffle though that has some negative connotations....
  • Commented on Measure Twice, Cut Once
    The thing that bothered me about This Old House was that Norm left out the opening bit of that statement, which in its entirety is "Think thrice, measure twice, cut once." The abbreviated version is now better known than the...
  • Commented on Programmers need a muse
Subscribe to feed Recent Actions from

  • Mr. Muskrat commented on Using the Record Separator

    Oh, eh1mnwy already said the same thing. I guess I left the window open longer than I realized before replying. :)

  • Toby Inkster commented on Using the Record Separator

    I think I see your point. The module in question is simply assuming that $/ is set to its default value, and breaking when it's not.

    It is a shame that per-filehandle record separators are not supported. (IO::Handle allows you to control quite a lot of stuff on a per-filehandle basis, such as autoflush, but not the record separator.) It is a shame that $/ cannot be lexicalised (like $_ can).

    Ultimately the lesson from this is that whenever you want to read from a file, if you care about the record separators at all, then you need to do local $/ = ..., even if you…

  • Dinesh Sehra commented on Perl vs Shell Scripts

    Awesome write up and comparison. Now I am clear to what extent I need to put my efforts in learning perl, and when I should attemp writing a script in perl.

    Thanks Buddy.


  • Olivier Mengué (dolmen) commented on Perl vs Shell Scripts

    About "Processing Job Output Lines":

    run some command | while read line
        process each "$line"
  • mug896 commented on Perl vs Shell Scripts

    In bash you cant set IFS=$'\n' instead of IFS="

Subscribe to feed Responses to Comments from

About is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is hosted by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.