Re: Code Assistance Pls

2018-11-21 Thread John W. Krahn
On 2018-11-21 3:08 a.m., Amanda Paziuk wrote: I'm hoping someone can assist as I'm having difficulty with parsing a section of the following configuration: This is the code I have: push @list, $datum; # should only contain '1', and '3' > > ... > foreach my $i (@list){ # loops t

Re: Code Assistance Pls

2018-11-21 Thread Jim Gibson
> On Nov 21, 2018, at 3:08 AM, Amanda Paziuk wrote: > > Folks, > > I'm hoping someone can assist as I'm having difficulty with parsing a section > of the following configuration: > > This is the code I have: > > open (IN, $file); # only sharing this because you need to know where > @l

Re: Code Assistance Pls

2018-11-21 Thread Mike Flannigan
These 2 lines: if (/^        file-id $i/) { and elsif (/^        exit/) { Need to be like this: if (/^\s+file-id $/i) { # 2 CHANGES HERE - PAY CLOSE ATTENTION and elsif (/^\s+exit/i) { I am not sure this will fix all your problems. Mike On 11/21/2018 5:08 AM, Amanda Paziuk wrote: Folks