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

Re^2: 'Anonymous' copy via file handle fails

by Monk::Thomas (Beadle)
on Jan 17, 2013 at 08:51 UTC ( #1013731=note: print w/ replies, xml ) Need Help??


in reply to Re: 'Anonymous' copy via file handle fails
in thread 'Anonymous' copy via file handle fails

Hmmm. The strange thing is I actually had a 'rewind' in there at some point but removed it again because it didn't have any impact. However if I change the first copy operation to

copy $src_file, $tmp1_fh or die "$ERRNO\n"; seek $tmp1_fh,0,0;
then it magically works now. Thanks for the tip! Maybe there is some other bug lurking in the original program, but now that the basic copy works I'm sure to figure it out.


Comment on Re^2: 'Anonymous' copy via file handle fails
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2014-07-11 08:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (222 votes), past polls