in reply to Re: Cannot copy from netowrk drive
in thread Cannot copy from network drive

AcidHawk, I appreciate your reply. If the file has pipes as a delimeter. Do I need to split the line wih pipes? Is there any way that I could pass the string to a variable then I would get the path at the end of the string. For example: var1@ = 0..12; $path = 12; I'll apreciate any suggestions.

Replies are listed 'Best First'.
Re: (3) Cannot copy from netowrk drive
by AcidHawk (Vicar) on Jun 12, 2003 at 06:47 UTC

      If the file has pipes as a delimeter. Do I need to split the line wih pipes?

    You are already doing this but you probably want something more like,

    @var1 = split/\|/;
      Is there any way that I could pass the string to a variable then I would get the path at the end of the string

    When you seperate the line with pipes "|" you put the values of the entire line in an array. All you have to do is point the path variable to the last element of the array. Something like,

    $path = $var1[$#var1];
    Hope this helps, I'm not sure I understood you question properly..

    -----
    Of all the things I've lost in my life, its my mind I miss the most.