encode(?) string for using it in subject line

2006-06-15 Thread Varga Pavol
Hi, please how to encode (or something else) string to use it for subject for mails? My problem is: my $string = Čo ťa to napadlo? my $string_usable_to_use_in_mail_subject = =?ISO-8859-2?Q?=C8o_=BBa_to_napadlo=3F?= But I don't know how to do it in Perl. Many thanks. -- To unsubscribe, e-mail

using (sharing) variables between perl files

2006-06-19 Thread Varga Pavol
Hi, may be very simple, but I don't understand well how to simple use (share) varables between perl files? I have (very) big perl script and I would like to divide it into more small scripts to make it all more transparent. Or, how to use one @array or one $array_ref for more than one file.pl? I j

search and replace content of file - pattern: hash

2006-03-25 Thread Varga Pavol
Hello, I would like to search content of file and as a pattern to use hash, but I can't find out how to do that. Situation: %hash = ( "key1" => "value1", ... "keyn" => "valuen"); open (FILE, "file.txt"); open (TMP, ">file.txt.renamed"); while (){ s/key1/value1/;