Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: change files names bug

by Yuma248 (Initiate)
on Oct 30, 2013 at 10:01 UTC ( [id://1060308]=note: print w/replies, xml ) Need Help??


in reply to Re: change files names bug
in thread change files names bug

which?

$!

Yep the lines are chomped in fact if you print $barcodes print the right string without new line

Replies are listed 'Best First'.
Re^3: change files names bug
by Anonymous Monk on Oct 30, 2013 at 11:01 UTC
    You said works for the first files, buy then die with the massage "Can not change sample_ACCTGG.fq to ACCTGG.fq". But when I print $new, it is "LA01.fq" that is correct.

    but the code is  rename ($file, $new) or die "Can not change $file to $new, $!\n"; so the error message you quoted is incomplete, it doesn't state the reason it rename didn't work

    This reason is everything

      Not to mention that the presented error message shows $new as being ACCTGG.fq, and the OP asserts that it is LA01.fq. Incorrect/incomplete reporting of error messages and other results makes remote diagnosis an exercise in clairvoyance.

      ...my crystal ball is still in the shop. (It kept reporting "line 42".)

      ...roboticus

      When your only tool is a hammer, all problems look like your thumb.

      Sorry the complete error say "Can not change sample_ACCTGG.fq to ACCTGG.fq, sample_ACCTGG.fq does not exist"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-19 13:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found