If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
How do I use a constant in a substitute?
On 08/14/2015 06:58 PM, T wrote:
Hi All, Duckduckgo is failing me here. What is the syntax to use a "constant" in a substitute? use constant tab = chr ("9"); my $FixMe = "abc" . tab . "def"; How do I change My $FixMe =~ s{\x09}{ }g; to use "tab" instead of "\x09"? Many thanks, -T Sorry, that was meant for the perl group. |
Ads |
Thread Tools | |
Display Modes | Rate This Thread |
|
|