in reply to Re: newbies, <code> tags and recognizing perl
in thread newbies, <code> tags and recognizing perl

Might detecting the presence of ^\s*my\s+\$.+; without <code> having been encountered first be enough to send up a flare?
  • Comment on Re^2: newbies, <code> tags and recognizing perl

Replies are listed 'Best First'.
Re^3: newbies, <code> tags and recognizing perl
by CountZero (Bishop) on Mar 24, 2008 at 15:59 UTC
    Could be, but if the newbie does not use strict; he is unlikely to have lexical variables and your regex will not trigger.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James