keiusui has asked for the wisdom of the Perl Monks concerning the following question:
This works fine if there is only one variable, as such:
$name =~ s/\</\<\;/g $name =~ s/\>/\>\;/g
But what if there are twenty variables, such as name, location, age, favorite movies, favorite books, etc.? Is there an easier way to edit all twenty variables rather than pasting the above two lines of code twenty times?
Thanks in advance for all of your help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how do I edit multiple variables at once?
by GrandFather (Saint) on Jul 04, 2009 at 04:46 UTC | |
by keiusui (Monk) on Jul 04, 2009 at 07:18 UTC | |
|
Re: how do I edit multiple variables at once?
by liverpole (Monsignor) on Jul 04, 2009 at 03:08 UTC | |
by merlyn (Sage) on Jul 04, 2009 at 03:23 UTC |