HaB has asked for the wisdom of the Perl Monks concerning the following question:
startblock=\013 endblock=\034
$config{'startblock'} = "\013"; $config{'endblock'} = "\034";
$in_msg =~ s/$config{'startblock'}//g; $in_msg =~ s/$config{'endblock'}//g;
all with the same result. The ACK message ends up using the literal '\013" instead of the v-tab. Same with the '\034'.# all in quotes $ack = "$config{'startblock'}<rest of ACK msg>$config{'endblock'}"; # encap chars outside of quotes $ack = $config{'startblock'} . "<rest of ACK>" . $config{'endblock'}; # regex $ack = "<ack msg here>"; $ack =~ s/(.*)/$config{'startblock'}\1$config{'endblock'}/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Octal Weirdness
by tye (Sage) on Dec 20, 2000 at 02:22 UTC | |
by japhy (Canon) on Dec 20, 2000 at 05:14 UTC | |
by repson (Chaplain) on Dec 20, 2000 at 10:00 UTC | |
by tye (Sage) on Dec 20, 2000 at 21:12 UTC |