Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: A Question on Regex

by Utilitarian (Vicar)
on Sep 07, 2011 at 10:26 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://924579]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-19 04:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found