Re: Parse text file and increment

2003-08-21 Thread zsdc
rmck wrote: I was wondering when you get time could you break this down for me?: print $1$_$4 for $2..$3; I'm having a hard time grasping it OK, I'll explain how the whole program works. (I'm CCing the list, other people could benefit as well.) Here's the program: #!/usr/bin/perl -nlw

Parse text file and increment

2003-08-20 Thread rmck
Hello, I have a perl script that opens up a text file and displays the data fine. My textfile: 111.111.111.1-25|DEPTA 222.222.222.50-60|DEPTB What I would like to do is have it increment 1 through 25, and 50 through 60, and display that like so: SO FAR .. here is the data file

Re: Parse text file and increment

2003-08-20 Thread zsdc
rmck wrote: I have a perl script that opens up a text file and displays the data fine. My textfile: 111.111.111.1-25|DEPTA 222.222.222.50-60|DEPTB What I would like to do is have it increment 1 through 25, and 50 through 60, and display that like so: Try something like this:

Re: Parse text file and increment

2003-08-20 Thread John W. Krahn
Rmck wrote: Hello, Hello, I have a perl script that opens up a text file and displays the data fine. My textfile: 111.111.111.1-25|DEPTA 222.222.222.50-60|DEPTB What I would like to do is have it increment 1 through 25, and 50 through 60, and display that like so: SO FAR ..