Hello Jenda,
JK> Why don't you open the file directly? JK> open ($LOG,"$g_logdir/OrderServer-*.log") JK> or die ( "Unable to open $g_logdir/OrderServer-*.log : $!"); JK> or am I misunderstanding something? I will give that a whirl in the AM, could have sworn I tried that and perl screamed at me due to the "*" in the file to open. JK> How much does the $g_date change? If it gets set to something before JK> this regular expression is first evaluated you may want to add the /o JK> modifier: $g_date never changes, it is just a strftime of localtime - 8160 seconds (1 day). -- Best regards, Ronald mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]