On Oct 19, 2004, at 5:26 PM, A Taylor wrote:

the line: $line =~ tr/images\//..\/..\/images\// is where I am getting stuck

the 'tr' operator work on $line changing every character in the first expression
with the corresponding one in the second, it don't change an entire expression
in the first with the second...


You should use the 's' operator

$line =~ s/images\//..\/..\/images\//

Give a look at perldoc perlop

HTH

Remo


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to