Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Substitution operator troubles

by cbro (Pilgrim)
on Jun 03, 2003 at 20:56 UTC ( #262784=note: print w/ replies, xml ) Need Help??


in reply to Substitution operator troubles

As far as I can tell you are only missing the global flag. That is:

$tool =~ s/<infile>/$file/;
Should be:
$tool =~ s/<infile>/$file/g;


Comment on Re: Substitution operator troubles
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2016-02-12 08:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (391 votes), past polls