in reply to Passing Hashes by Reference

Heh heh heh heh, Where's Perl?

Anyways, what's the purpose of this really? Did you ever read perlref or perlreftut?

  • The 3rd thing the snippet done is done by Data::Dumper
  • You could simply reassign $str there is no need for $prefix; $str .= "." . $i;
  • --
    perl -pe "s/\b;([st])/'\1/mg"

    Replies are listed 'Best First'.
    Re: Re: Passing Hashes by Reference
    by jamesdmorris (Sexton) on Jan 10, 2002 at 16:10 UTC
      hah, I don't administer the machines...

      In reply...

      Yes I have read the documents, but found them a little confusing. I'm sure I'm not the only one... examples always help.

      I am familiar with Data::Dumper, but, the function is pretty small, and does not require Data::Dumper to be installed on the machines which I do not administer. ;)

      string re-assignment, yep, I should have done that :)