Home  |  Linux  | Mysql  | PHP  | XML
From:mohammad yaseen Date:Sun Jun 11 23:49:03 2006
Subject:Re: %SVf in perl
Thanks John...
  >What problem are you trying to solve???
  Just i was trying to understand how error messages prints string when SVf is the format specifier.
  

John Peacock <jpeacock@rowman.com> wrote:  mohammad yaseen wrote:
>   Can someone tell how SVf format sprecifer prints a string when it is %_?

The "%_" format is a special Perl extension to printf-style formats that knows
how to handle extracting the string from an SV (hence SVf - SV format).  This
includes (if I'm not mistaken) calling mg_get() on any magic objects to get the SV.

>   What does "%""_" signifies? Is any special mening for this in perl?How this works?

In C-code, two strings with whitespace separating them (you just can't see that
particular whitespace) just get concatenated together.  Hence the following are
equivalent:

 "%_"
 "%""_"
 "%"    "_"

and in fact a newline can be inserted between the two strings and it still won't
have any bearing on what the compiler actually perceives (C is whitespace blind).

What problem are you trying to solve???

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747


 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Attachment: [text/html]
Navigate in group perl.mvs at sever nntp.perl.org
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants