I have a delimited text file with a vertical bar (|) as the column delimiter. When I execute the following statement... @Line = split(/\|/, $_); ...I get the expected results. When I execute the following... $CharSep="\|"; @Line = split(/$CharSep/, $_); ...the file seems to break at every character. Instead of @Line[0]="Date", @Line[0]="D", @Line[1]="a", @Line[2]="t",@Line[3]...well, you get the idea. What do I need to add to the second bit of code to make it work? Scott
- Re: SPLIT QUESTION Jeff Pinyan
- Re: SPLIT QUESTION Piers Cawley
- Re: SPLIT QUESTION Brett W. McCoy
- Re: SPLIT QUESTION Randal L. Schwartz
- Re: SPLIT QUESTION Paul
- Re: SPLIT QUESTION Jeff Pinyan
- Re: SPLIT QUESTION Paul
- Re: SPLIT QUESTION Jeff Pinyan
- Re: SPLIT QUESTION Paul
- Re: SPLIT QUESTION Paul
- Re: Split question Scott and Kristin Seitz
- Re: Split question Shane Laffin
- Re: Split question Jeff 'japhy/Marillion' Pinyan
- Split question Perl
- Re: Split question John W. Krahn
- Re: Split question Kenton Brede
- Re: Split question Josimar Nunes de Oliveira
- Re: Split question John W. Krahn
- Re: Split question Joel Newkirk
- Re: Split question R. Joseph Newton
- Re: Split question James Edward Gray II