in reply to put file content into a string
jeanluca, this will work
open (IN, "<", "myFile") or die "Cannot open: myFile: $!\n"; ; { local $/; $str = <IN>; print "$str\n"; } close IN ; [download]
Also there is a module Slurp to do this.
Prasad