Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^4: How to use __DATA__ efficiently, help!

by Anonyrnous Monk (Hermit)
on Feb 09, 2011 at 20:02 UTC ( #887268=note: print w/ replies, xml ) Need Help??

in reply to Re^3: How to use __DATA__ efficiently, help!
in thread How to use __DATA__ efficiently, help!


You probably meant

$_ =~ s/<--date\/\/>/$date/; ...

or just (as $_ is the default anyway)

s/<--date\/\/>/$date/; ...

s/// returns the number of substitutions made, so as you have it, you're appending that number to $_.

Comment on Re^4: How to use __DATA__ efficiently, help!
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2016-02-07 06:53 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (250 votes), past polls