[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 2315 lines (75 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
inside(have more than one return value, we can construct and dereference ananonymous array. In this case, we call the function in list context.print "The time values are @{ [localtime] }.\n";If we want to call the function in scalar context, we have to do a bitmore work. We can really have any code we like inside the braces, sowe simply have to end with the scalar reference, although how you dothat is up to you, and you can use code inside the braces. Note thatthe use of parens creates a list context, so we need C<scalar> toforce the scalar context on the function:print "The time is ${\(scalar localtime) X-Ref |
No description |
Generated: Tue Mar 17 22:47:18 2015 | Cross-referenced by PHPXref 0.7.1 |