Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Context tutorial

by didess (Sexton)
on Feb 02, 2009 at 23:44 UTC ( #740850=note: print w/ replies, xml ) Need Help??


in reply to Context tutorial

The way you print in the first example:

perl -e "@now = localtime(); for $now(@now) {print $now;}"

is tricky because the result looks rather like a scalar (a sort of big integer)

and does not show the "list form" we got from the context. Something like :
perl -e "@now = localtime(); print join(',',@now);"
should give a better "image".

More, unfortunately, the "scalar" output is a string of enumerated words

which looks more like a list !

(first impression is important for a tutor ;-)


Comment on Re: Context tutorial
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (16)
As of 2015-07-30 13:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls