Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^7: appending a variable

by GrandFather (Saint)
on Apr 28, 2022 at 23:36 UTC ( [id://11143409]=note: print w/replies, xml ) Need Help??


in reply to Re^6: appending a variable
in thread appending a variable

Try this case:

use strict; use warnings; my $vmstr = "-1"; my $ymmv = "Mileage "; my ($opstr) = $vmstr =~ /-(\d\d)$/; print "$ymmv'$opstr'\n";

What do you expect should happen. What actually happens. How does it relate to your issue?

You might like to try without strictures first (comment out the first two lines).

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-24 06:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found