Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Substitution query

by Loops (Curate)
on Nov 20, 2014 at 05:11 UTC ( [id://1107874]=note: print w/replies, xml ) Need Help??


in reply to Substitution query

Yeah, it can be done on the next line after your tr:

$fn =~ s/gpfs_data/nas\/rdds/;

You definitely don't want to loop through the entire @allpathlisting array every time you add a single new file to it.

Replies are listed 'Best First'.
Re^2: Substitution query
by Anonymous Monk on Nov 20, 2014 at 05:58 UTC

    Thanks for that it fixed the speed, I get the reason now.

    However this bit

    $fn =~ s/gpfs_data/nas\/rdds/;

    is still producing a rogue forward slash in my path

    \\nas/rdds\open\

      Then change the substitution text to nas\\rdds instead.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (1)
As of 2024-04-24 14:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found