Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by dkubb (Deacon)
on Mar 20, 2003 at 06:38 UTC ( #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? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2022-12-02 09:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?