Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Cannot copy from netowrk drive

by AcidHawk (Vicar)
on Jun 09, 2003 at 18:54 UTC ( [id://264427]=note: print w/replies, xml ) Need Help??


in reply to Cannot copy from network drive

You didn't really tell us what you are having trouble with but try this

Put a \ in front of your | in the split line.. something like

my @fields = split /\|/;

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

Replies are listed 'Best First'.
Re: Re: Cannot copy from netowrk drive
by skyler (Beadle) on Jun 11, 2003 at 14:53 UTC
    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.

        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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-19 16:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found