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

(dkubb) Re: (1) Changing -> to work within a string

by dkubb (Deacon)
on Mar 20, 2003 at 06:38 UTC ( [id://244539]=note: print w/replies, xml ) Need Help??


in reply to Changing -> to work within a string

Why not use sprintf to keep the method calls somewhat separated from the string?

eg:

my $directory = sprintf '%s/subdir/%s/', $machine->work_dir, $machin +e->software_version;
Dan Kubb, Perl Programmer

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-03-28 10:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found