Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: difference between ($scalar) and $scalar

by tachyon (Chancellor)
on Jul 21, 2001 at 13:19 UTC ( #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? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2021-10-23 05:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (86 votes). Check out past polls.

    Notices?