Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Move along, nothing to see here . . .

by Corion (Patriarch)
on Jan 22, 2012 at 21:03 UTC ( [id://949282]=note: print w/replies, xml ) Need Help??


in reply to Move along, nothing to see here . . .

If you are really bent on doing a changed-assignment in one line, you can do it like this:

(my $parent_directory = $new_vhost_path) =~ s,^(.*)/(.*),$1,;

The issue is one of precedence, and the parentheses make the assignment happen first, and the replacement on $parent_directory second.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-03-29 13:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found