Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: output of one program doesn't show in another on server

by AnomalousMonk (Archbishop)
on Dec 18, 2012 at 04:38 UTC ( [id://1009273]=note: print w/replies, xml ) Need Help??


in reply to output of one program doesn't show in another on server

That's not the way to obtain the length (i.e., number of elements) of an array. See scalar. See also the discussion in Scalar values (in perldata) in the paragraph beginning 'The length of an array is a scalar value.' Dunno about the rest of your question.

>perl -wMstrict -le "my @ra = qw(a b c); print length @ra; print scalar @ra; ;; @ra = (); print length @ra; print scalar @ra; " 1 3 1 0

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2024-04-24 10:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found