D
Damian
Is there anyway to tell, for a function thats being called in a scalar
context, weather it's expected to return a string or a number? sorta
like localtime, which returns a number and returns a string if you put
"". before it like:
[damian@me ~]# perl -e 'print localtime(), "\n";'
321512201044210
[damian@me ~]# perl -e 'print "". localtime(), "\n";'
Thu Jan 22 01:15:39 2004
It some how *knows* if it's being used with a string (concatenated) or
not, orta like an array seems to know too.
Thanks for any help.
context, weather it's expected to return a string or a number? sorta
like localtime, which returns a number and returns a string if you put
"". before it like:
[damian@me ~]# perl -e 'print localtime(), "\n";'
321512201044210
[damian@me ~]# perl -e 'print "". localtime(), "\n";'
Thu Jan 22 01:15:39 2004
It some how *knows* if it's being used with a string (concatenated) or
not, orta like an array seems to know too.
Thanks for any help.