good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^7: Delete a line from filesby choroba (Cardinal) |
on Oct 13, 2015 at 10:27 UTC ( [id://1144671]=note: print w/replies, xml ) | Need Help?? |
It doesn't work. The diamond operator opens the file and reads from it at the same time, you can't first open the file and then set the variable. Check the difference yourself:
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|