Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: accessing randon number from perl script

by TomDLux (Vicar)
on May 24, 2012 at 19:10 UTC ( [id://972297]=note: print w/replies, xml ) Need Help??


in reply to accessing randon number from perl script

You aren't copying the files with Perl, you are copying the files fith a DOS command which is invoked from Perl.

If your goal is to eliminate the file of zeroes, I would suggest a perl routine to open an input file, copy it line by line to a provided output filehandle, and then close the file. To insert the zeroes, you can simply write to the output filehandle .... except you may need to reopen it in binary mode. Maybe printing "\x00" .. the string containing a single byte with the value 00 ... will work, you can give it a try.

P.S. What does this have to do with "accessing randon number from perl script"?

As Occam said: Entia non sunt multiplicanda praeter necessitatem.

Log In?
Username:
Password:

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

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

    No recent polls found