in reply to How do i get the variables to actually get in here....
That regex looks awfully complicated to me. I think you should look into using split instead (in perlfunc). I can't say for sure whether this will work without seeing your input data, but it seems pretty likely given that all your regex contains is permutations of \W and \w.
One additional point, don't use while (defined(<>)). <> is always defined until end-of-file, and I don't think that form assigns the result of <> to $_. Use while (<>) instead.
Update: turns out = will do the right thing in this case, at least according to dragonchild (see next post). Oh well, it was probably the while (defined(<>)) bit anyway...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How do i get the variables to actually get in here....
by dragonchild (Archbishop) on Nov 07, 2001 at 02:55 UTC |