in reply to
Re^2: Issue with read a file
in thread
Issue with read a file
Use double quotes. Single quotes do not interpolate. Or even better, set $/ locally.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Comment on
Re^3: Issue with read a file
Replies are listed 'Best First'.
Re^4: Issue with read a file
by
dlal66
(Acolyte)
on Sep 12, 2013 at 17:17 UTC
Thanks everyone! The following worked: $whole_file = do { local $/; <FILE> };
[reply]
In Section
Seekers of Perl Wisdom