Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Mr. Muskrat (4572)

Mr. Muskrat
  reversethis-{moc ... ta} {tarksum.rm}

I'm married with 2 girls. I work as a full time Perl programmer for a Land Mobile Radio company in the Dallas/Fort Worth area.

I am enrolled at the Art Institute of Pittsburgh - Online working towards a Bachelor of Science in photography.

My other blog [blogspot.com]

Journal of Mr. Muskrat (4572)

Friday January 30, 2004
01:29 AM

True even today

[ #17098 ]

(Especially in IT)

"A little inaccuracy sometimes saves a ton of explanation."
      - H. H. Munro (Saki) (1870-1916)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I start the Llama Course [stonehenge.com] by saying "we're gonna lie a little bit, rounding off the corners". Of course, I have to be careful about what I lie about, but do you really want to tell a beginner that chomp depends on a magic $/ variable when all you're trying to do is get rid of that darn newline on a line you've just read?

    Education is an iterative and recursive process.

    --
    • Randal L. Schwartz
    • Stonehenge
    • Thank you for the reminder about chomp using the value of $/.

      I sent out an email to our development group as a refresher:

      We all know and use chomp, right?

      It's the function that we use to remove trailing newlines. But did you know that it works on more than just scalars? Used on an array, it will chomp each element. Used on a hash, it will chomp the values but not the keys. It returns the total number of characters removed.

      The coolest part of this function is that you can set $/ to whatever you like