Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Change variable multiple times within a single string?

by AnomalousMonk (Canon)
on Apr 27, 2013 at 19:58 UTC ( #1031010=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >perl -wMstrict -le
    "for my $s (qw(
    ...
    no A or B found in 'xx' at -e line 1.
    no A or B found in 'x' at -e line 1.
    no A or B found in '' at -e line 1.
    
  2. or download this
    >perl -wMstrict -le
    "my %xlat = qw(A yes  B no);
    ...
    no A or B found in 'xx' at -e line 1.
    no A or B found in 'x' at -e line 1.
    no A or B found in '' at -e line 1.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031010]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2016-09-26 00:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (474 votes). Check out past polls.