in reply to Re^3: Parsing with RegEx into Array
in thread Parsing with RegEx into Array
What does the 's' mean? Can you point me to any documentation on this if u know of?
I am also unable to print the utf8. Below is my code.
my $curLink1 = utf8::decode($curLink); # Use UNICODE semantics
my $item1 = utf8::decode($item);
use open OUT => ':utf8';
open OUT_FILE, "> $fileName";
print OUT_FILE "<item>$item1</item>";
#open (my $fh, '>:encoding (UTF-8)', $fileName);
#print $fh "<item>$item1</item>";
I tried the commented code too. I also tried to print $item, which is encoded. $item or $item1 does not print in file, but it does print on STDOUT.
Thanks for you help.