Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Substitution query

by Loops (Curate)
on Nov 20, 2014 at 05:11 UTC ( #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
Node Status?
node history
Node Type: note [id://1107874]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2021-04-15 02:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?