in reply to how to store data in file with out using print

I recently used
$filename = <absolute path of the file>; `echo "$a" > $filename`
if double quotes surrounded by $a is missed, then if $a contains ;(semi colon) then the echo won't write into the file, the echo command just end with that semi colon, so double quotes around $a is must
for example the below won't write into a file
$a = "this is testing;"; `echo $a > $filename`
it just creates a 0 byte file, because that semi colon just ends that echo command, and the redirection operator would have already created that file with 0 byte size
I spent some time on this issue so I am sharing this here
i am speaking in the context of *nix systems.

Vivek
-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.