Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: call string value from bottom

by BillKSmith (Monsignor)
on Sep 05, 2019 at 13:06 UTC ( [id://11105655]=note: print w/replies, xml ) Need Help??


in reply to call string value from bottom

Is this what you mean?
use strict; use warnings; my $johndeo_age = 21; my $name = "Johndeo_age = $johndeo_age"; print $name;

OUTPUT

Johndeo_age = 21

Note that assigning an age to a variable called '$name' is very poor practice because it is confusing.

Bill

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-25 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found