LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: John Peacock Date: Fri Jun 9 07:51:51 2006 Subject: Re: %SVf in perl
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
| 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 |