http://www.perlmonks.org?node_id=625760


in reply to Someone please verify this.

You may also want to look at the -i switch to the perl interpreter which allows for in-place editing of files - For example:
perl -pi -e 's/foo/bar/g' file.txt
Further details are available in the perlrun man page.

 

perl -le "print unpack'N', pack'B32', '00000000000000000000001000000000'"