Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: change files names bug

by oiskuu (Friar)
on Oct 30, 2013 at 10:46 UTC ( #1060319=note: print w/ replies, xml ) Need Help??


in reply to change files names bug

Test the s///.

my $new = $file; if ($new =~ s/sample_$barcode/$id/) { rename ($file, $new) or die; }


Comment on Re: change files names bug
Download Code
Re^2: change files names bug
by Yuma248 (Initiate) on Nov 01, 2013 at 01:50 UTC

    I tried it before, but it did not work. Thank you

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2015-07-07 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls