lepetitalbert has asked for the wisdom of the Perl Monks concerning the following question:
Hello dear Monks,
I'm trying to split the following line of code :
printf ("\n\n %-70s" , "Creating printable report $ARGV[0].html ( ne +w ) ... ");
Tried
printf ("\n\n %-70s" , "Creating printable report" . "$ARGV[0].html ( new ) ... ");
printf ("\n\n %-70s" , "Creating printable report $ARGV[0].html ( new ) ... ");
added ()'s but always got 'printf (...) interpreted as function'.
I found it may have something to do with 'scalar/list context' or missing brackets, but not the way to solve the prob.
Thanks
Have a nice day
"There is only one good, namely knowledge, and only one evil, namely ignorance." Socrates
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Unable to split this line of code (printf warning)
by GrandFather (Saint) on Nov 24, 2005 at 21:51 UTC | |
by lepetitalbert (Abbot) on Nov 24, 2005 at 22:32 UTC | |
Re: Unable to split this line of code (printf warning)
by monarch (Priest) on Nov 24, 2005 at 22:43 UTC | |
by chromatic (Archbishop) on Nov 25, 2005 at 01:45 UTC | |
Re: Unable to split this line of code (printf warning)
by Aristotle (Chancellor) on Nov 26, 2005 at 00:40 UTC |
Back to
Seekers of Perl Wisdom