>>>>> "p" == pleier <> writes:
>> perl -pi -e 'use URI::Escape; print uri_escape($_)' link_names.txt
p> The -p already prints the original line, just leave it and it should work.
leave what? uri_escape returns a value so it needs to either be printed
explicitly or assigned to $_.
these should be equivilent:
perl -pi -e 'use URI::Escape; $_ = uri_escape($_)' link_names.txt
perl -ni -e 'use URI::Escape; print uri_escape($_)' link_names.txt
and using -M is a little cleaner too:
perl -pi -MURI::Escape -e '$_ = uri_escape($_)' link_names.txt
uri
--
Uri Guttman ------
--------
http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ----
http://bestfriendscocoa.com ---------