Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: How can we interpolate an expression??

by Anonymous Monk
on Sep 20, 2012 at 18:10 UTC ( #994716=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     my $arrayref = [ 4200 / 100  ];
    print "The answer is $arrayref \n";
    
  2. or download this
     my $arrayref = [ 4200 / 100  ];
    print "The answer is @$arrayref \n";
    
  3. or download this
     my $arrayref = ;
    print "The answer is @[ 4200 / 100  ] \n";
    
  4. or download this
    syntax error at - line 1, near "= ;"
    Execution of - aborted due to compilation errors.
    
  5. or download this
     
    print "The answer is @{[ 4200 / 100  ]}\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://994716]
help
Chatterbox?
[james28909]: thanks
[james28909]: what i am trying to do is track state of a chat based application. i need to be able to store the channels and such for a user, and when they join a new server/channel i need to be able to update that feild.
[james28909]: do you think OO would best suite that?
[karlgoethebier]: james28909: The last two are not mainstream. You have been warned ;-)
[karlgoethebier]: james28909: I don't know. Try it.
[james28909]: foreach server this bot is on, the gateway sends me a json response, which i parse out all the info with JSON, and this response has user information, i need to be able to add a user, and then update the user info when they join/leave rooms ect

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2017-05-25 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?