in reply to Re: Perldoc: String interpolation with octal escpape sequence like \1
in thread Perldoc: String interpolation with octal escpape sequence like "\1"

Also:

Starting in Perl 5.14, you may use \o{} instead, which avoids all these problems. Otherwise, it is best to use this construct only for ordinals \077 and below, remembering to pad to the left with zeros to make three digits.
Basically "Don't do it". The confusion with \1 and so on being the main reason IMHO.

  • Comment on Re^2: Perldoc: String interpolation with octal escpape sequence like \1

Replies are listed 'Best First'.
Re^3: Perldoc: String interpolation with octal escpape sequence like \1
by LanX (Saint) on Oct 02, 2018 at 15:31 UTC
    > Basically "Don't do it".

    "Don't do it"* doesn't mean document it badly, especially if there is no warning.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

    *) BTW I agree!