sloppyhack
Technical User
I am moving some scripts from a Windows env to Linux. The scripts ran fine under Windows but I'm running into some RegEx problems in Linux. I have a subprocess that checks the header row of input data. The last header value is not being recognized with the following expression. It is recognized if I put an additional tab at the end. Here's the expression. Anyone know why it's not working under Linux? Is there a syntax issue I overlooked? FYI..the line is being "chomped" before getting here.
unless (/(^|\t)$_[0]($|\t)/) { #check to see if the header value exists preceeded by (beginning of line or tab) and followed by (end of line or tab)
}
It always falls to recognize the last value of the line even though it exists in the file? Any help would be greatly appreciated.
Cheers,
Sloppyhack
unless (/(^|\t)$_[0]($|\t)/) { #check to see if the header value exists preceeded by (beginning of line or tab) and followed by (end of line or tab)
}
It always falls to recognize the last value of the line even though it exists in the file? Any help would be greatly appreciated.
Cheers,
Sloppyhack