CoderZone.org

Category: >> Perl Code >> Copying and Substituting Simultaneously Bookmark and Share

<< lastnext >>

Snippet Name: Copying and Substituting Simultaneously

Description: Search and replace a copy of the string and in one step.

Also see:
» Copy a folder in Visual Basic
» Copy a file in VB
» Copy Files By Date Modified
» Search and Replace On Every Field ...
» Copy a remote file to your site
» Regular Expressions - REGEXP_REPLA...
» Inline search and replace
» NVL: Replace NULL values
» Column copy with string replacement
» Replace a NULL with a given value.
» Search and Replace
» Copy one table to another
» Copy IFRAME contents
» Copy File From Server

Comment: (none)

Author: CoderZone
Language: PERL
Highlight Mode: PERL
Last Modified: December 03rd, 2010

# copy and replace in one pass
 
($dst = $src) =~ s/this/that/;
 
There haven't been any comments added for this snippet yet. You may add one if you like.  Add a comment 
© coderzone.org | users online: 7