Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: A Question on Regex

by Utilitarian (Vicar)
on Sep 07, 2011 at 10:26 UTC ( #924579=note: print w/replies, xml ) Need Help??


in reply to A Question on Regex

not sure if this is what you require, it depends on all statements ending in a semi-colon.
#!/usr/bin/perl while(<DATA>){ while (! /;$/){ chomp; $_ .=readline DATA; } print if /^\$fwrite.+;/; } __DATA__ $fwrite(f,{few parameters},fwrite(f,{kjg,kk})); $fwrite(f,koal,jirp); $fwrite(f,jrei,orowp, jgo); fwrite(f,jrei,orowp,jgo);
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://924579]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2016-12-05 20:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (91 votes). Check out past polls.