Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: what is scalar?

by myocom (Deacon)
on Jul 09, 2001 at 06:50 UTC ( [id://94892]=note: print w/replies, xml ) Need Help??


in reply to what is scalar?

The difference boils down to this: localtime() is not a list, it's a function that returns a list when called in list context. When it's called in scalar context (such as when you force it with scalar or assign to a scalar value such as $now = localtime;) it returns a "pretty" version of the current date and time.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://94892]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-16 17:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found