Real Perl has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I have a file .txt where I write the name of a directory and then a bunch of letter preceded of a "/". The content of my file looks like:and the first element of my array is: /C:\Documents and Settings\Claire\Desktop\. Why is that? There is no "/" in front of "C:" in my file!!! Anybody would like to tell me?open (IN, "<command.txt"); while(<IN>){ @array = split '/'; }#while close IN;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "/" with directory in an array
by pg (Canon) on Aug 14, 2005 at 00:39 UTC | |
|
Re: "/" with directory in an array
by sk (Curate) on Aug 14, 2005 at 00:43 UTC | |
|
Re: "/" with directory in an array
by graff (Chancellor) on Aug 14, 2005 at 17:25 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |