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

Re: difference between ($scalar) and $scalar

by tachyon (Chancellor)
on Jul 21, 2001 at 13:19 UTC ( [id://98644]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $str = "aa bb cc";
    
    ...
    @a = $str =~ m/(\w+)/g;
    print "@a\n";
    # prints aa bb cc
    
  2. or download this
    print localtime(), "\n";
    print scalar localtime(), "\n";
    ...
    
    print "\$time => $time\n";
    print "\@time => @time\n";
    

Log In?
Username:
Password:

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

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

    No recent polls found