in reply to Variables in system calls

You might consider:

my $share= '//'.$server.'/c$'; $share =~ tr#/#\\#; system( "net use j: $share ..." );
that way you don't have to count backslashes and don't need a backslash in front of the '$'.

        - tye (but my friends call me "Tye")