Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: How do I match/extract a function from a JavaScript file?

by Shakya (Initiate)
on Sep 30, 2007 at 17:35 UTC ( #641792=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
      if (d) { e++; } else { f = g + h; }
      print "ho";
    } 
    
  2. or download this
    Matched :
    foo (a, b, c) {
       if (c) { a++; } else { b--; }
       print "hi";
    }