Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
General
:
Perl Programming
:
Search and Replace
Previous Thread
Next Thread
Print Thread
View Threaded
Oct 16, 1998, 3:28 PM
kian
Novice
(13 posts)
Oct 16, 1998, 3:28 PM
Post #1 of 3
Views: 5803
Shortcut
Search and Replace
How to search and replace all word that match in a file with the hash below? Thanks!
%word = ('old'=>'new', '97'=>'98');
Oct 17, 1998, 7:03 AM
Alex
Administrator
(9387 posts)
Oct 17, 1998, 7:03 AM
Post #2 of 3
Views: 5612
Shortcut
Re: Search and Replace
In reply to
Not quite sure I understand? Do you want to search a file and replace all instances of old with new and 97 with 98?
Cheers,
Alex
Oct 17, 1998, 10:17 AM
kian
Novice
(13 posts)
Oct 17, 1998, 10:17 AM
Post #3 of 3
Views: 5610
Shortcut
Re: Search and Replace
In reply to
Yes, but not only replace old with new and 97 with 98, is to replace it with all of the text in a hash.
Previous Thread
Next Thread
Print Thread
View Threaded