> Hello, now I am a newbie to perl & would like to
> migrate my existing knowledge...
>
> Would anypone give me a crash course here... how would
> my following short vbscript correspond in perl.????
>
Bravo for dumping vbscript!
You'll find Perl much easier, platform independent, and just generally more cool!
So are you copying a directory(s) basically?
Instead of translating line by line (which would be confusing and a lot of unnecessary
work and code)
Determine what you need to do and do it fresh.
I'd recommend looking at search.cpan.org for one of the File:: modules.
(search.cpan.org is your friend and so is perldoc: perldoc -h)
For instance take your vbscript version and compare to this:
(doesn't seem to copy directory structures but a liitle more involved will)
use File::Copy;
copy('/home/file1','/home/file2') or die "Copy failed: $!";
HTH
DMuey
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>