Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: accessing randon number from perl script

by TomDLux (Vicar)
on May 24, 2012 at 19:10 UTC ( #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.


Comment on Re: accessing randon number from perl script
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2014-07-10 10:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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








    Results (206 votes), past polls