Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
hey monks , since I am new to perl. my question might seems real easy +. I have the following -rw-rw-r-- 1 kp3194 oper 0 Sep 29 09:20 file1 -rw-rw-r-- 1 kp3194 oper 165 Sep 29 09:20 file2.sql I need to use split to only get the files name somthing like file1 file2.sql I am doing $file = split(/\s*/,12);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: split to get the dir name
by davis (Vicar) on Sep 29, 2003 at 15:35 UTC | |
|
Re: split to get the dir name
by jeffa (Bishop) on Sep 29, 2003 at 15:34 UTC | |
|
Re: split to get the dir name
by dragonchild (Archbishop) on Sep 29, 2003 at 15:34 UTC | |
by dvergin (Monsignor) on Sep 29, 2003 at 18:56 UTC | |
by dragonchild (Archbishop) on Sep 29, 2003 at 19:02 UTC | |
by Plankton (Vicar) on Sep 29, 2003 at 19:27 UTC | |
by dragonchild (Archbishop) on Sep 29, 2003 at 19:30 UTC | |
| |
by Plankton (Vicar) on Sep 29, 2003 at 15:40 UTC | |
|
Re: split to get the dir name
by welchavw (Pilgrim) on Sep 29, 2003 at 16:46 UTC | |
by NetWallah (Canon) on Sep 29, 2003 at 17:32 UTC | |
|
Re: split to get the dir name
by vek (Prior) on Sep 29, 2003 at 17:25 UTC | |
by Grygonos (Chaplain) on Sep 29, 2003 at 17:49 UTC | |
by Anonymous Monk on Sep 29, 2003 at 18:06 UTC | |
|
Re: split to get the dir name
by Plankton (Vicar) on Sep 29, 2003 at 15:33 UTC | |
by davido (Cardinal) on Sep 29, 2003 at 18:18 UTC | |
by jasonk (Parson) on Sep 30, 2003 at 00:15 UTC |