in reply to Script runs from command line but not via crontab
The hash should be global, or a state variable if you have 5.10. Then in the subroutine:%languagenames = ("English" => "en", "Indonesian" => "id", "Chinese" => "zh", "Danish" => "da", "German" => "de", "Spanish" => "es", "Esperanto" => "eo", "French" => "fr", "Italian" => "it" "Creole" => "cpf", "Dutch" => "nl", "Norwegian" => "no", "Polish" => "pl", "Portuguese" => "pt" "Russian" => "ru", "Finnish" => "fi", "Swedish" => "sv", "Turkish" => "tr");
You can use a simple array for the month numbers.%language = $languagenames{$languagename};
|
---|