Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: File Copy

by Ionitor (Scribe)
on Jul 22, 2002 at 17:56 UTC ( #184159=note: print w/replies, xml ) Need Help??


in reply to File Copy

As a related question, what's the easiest way of writing Perl code without whitespace?

Seriously, what is your reason for wanting to avoid a relatively easy, platform-independent method like File::Copy? If there's really a good reason, and since you seem to be using a Windows network copy, you could just use:

`copy $FileName \\\\somecomputer\\folder\\here\\`;
or,
system('copy', $FileName, '\\\\somecomputer\\folder\\here\\');
You need to doubled-up backslashes to avoid escaping issues.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2022-12-09 06:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?