Hi,
i have a script with multi files...
in one file, i defined all the functions......
and from other file i am calling the functions...
suppose, following is my function defination...
sub log_msg()
{
print LOG "@_\n";
}
i am calling this function with
log_msg("Running script\n")
here i am getting following error,
too many arguements to log_msg at "("Running
script\n")"
--
then i changed the function defnitation.....like
following
##here i removed () in function definition
sub log_msg
{
print LOG "@_\n";
}
now it's working....I am curious to know,
why it is hapenning ?
in function definition we don't need to put "()" ?
Thanx
-Madhu
__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]