in reply to Re: Perl and cat > wpa_supplicant/.config << "EOF"
in thread Perl and cat > wpa_supplicant/.config << "EOF"

Hi Choroba,

That's just what I'm looking for.

Why does $out need the curly brackets?

Can I also put lines like:

CONFIG_PEERKEY=$yorn

in the data?

Regards

Steve.

Replies are listed 'Best First'.
Re^3: Perl and cat > wpa_supplicant/.config << "EOF"
by choroba (Cardinal) on Feb 08, 2014 at 13:03 UTC
    Why does $out need the curly brackets?
    It does not. $OUT{wpa} would need them, though, if the file handles were stored in a hash. I use it just to make it visually more distinct from print $OUT, $data.

    See <<EOF on how to make a here document interpolate variables (basically, just use double quotes when introducing the terminating string).

    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ