Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: a Couple of questions!

by asarih (Hermit)
on Sep 20, 2003 at 13:56 UTC ( #292855=note: print w/replies, xml ) Need Help??


in reply to a Couple of questions!

  1. You want to use the /g modifier, and get the number of elements in the array that Perl returns. Read Perl Idioms Explained - @ary = $str =~ m/(stuff)/g and Hits on a reg expression.
  2. Don't even start. That's a futile discussion that goes nowhere.
  3. I'm guessing that you are looking into template solutions, such as Mason and HTML::Template. (I'm sure there are others.)

Did you just post the same questions twice? (a Couple of questions!)

Oh, I see, there's an extra question there. To answer the extra question, you could try something like: /$data\s+(\w+)/ and pick up $1 after the match. But really, you should read ISBN 0596002890 and a myriad of other questions on regular expressions.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://292855]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2022-08-12 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?