Mukesh said:
Please put the subject of your article in the Subject of your article.
There are a hundred messages a day here, nearly *all* of
them wanting Perl help.
Your subject contains no useful information nor does it indicate
what your article is about.
Have you seen the Posting Guidelines that are posted here frequently?
Syntax error, no semicolon.
We must see the *actual code* if we are to debug the code!
You should copy/paste working code into your article.
Have you seen the Posting Guidelines that are posted here frequently?
To do that in native Perl instead of shelling out:
perldoc -f localtime
$logdir="$LOGBASEDIR/$date/$host"
i have set the logdir like this but it is not printing
Of course it isn't, there are no print() statements in your code!
You must have some statements in your code that generate output
before you will see any output from your program.
the date & host but just
displaying the host & date variables.
Huh?
It is not "printing" them, but it *is* "displaying" them?
What is the difference?
How to set what?
How to set the hostname or how to set the $host variable?
How to set the date or how to set the $date variable?
Help us help you by giving us what we need to help you, namely
real code that we can run that duplicates the problem.
You will eventually also need to know about:
perldoc -f chomp