Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] Re: Can a substitute self-reference?

Expand Messages
  • Jenda Krynicky
    From: Amit Saxena ... !post top- not Do what good is $str =~ s/^ s*?//; ? Do not try to avoid greedines ! Understand the
    Message 1 of 13 , Jul 9 8:59 AM
      From: "Amit Saxena" <learn.tech123@...>
      > Sorry about that typo,
      > What I meant was :-
      > Regarding the whitespace issue, always use \s+ or \s* and try to avoid the
      > greedyness of "*" by replacing it with "*?"
      > Regards,
      > Amit Saxena

      !post top- not Do

      what good is
      $str =~ s/^\s*?//;

      Do not "try to avoid greedines"! Understand the difference and choose
      the right (greedy vs. lazy) version accordingly.

      ===== Jenda@... === http://Jenda.Krynicky.cz =====
      When it comes to wine, women and song, wizards are allowed
      to get drunk and croon as much as they like.
      -- Terry Pratchett in Sourcery
    Your message has been successfully submitted and would be delivered to recipients shortly.