hello all, i read how one may include 's' at end of a pattern match to essentially redefine '.' to include the 'newline character'.
today i found a code fragment whereby someone presents how they extract flate encoded streams from pdf files using a regex whereby he is using the 's' option. the problem is that for the particular test pdf file i am trying to process, the definition of 'newline' is only (hexOD) in general, i read that the definition of 'newline' may vary by os, to be either of several values: (hex0D)(hex0A) windows (hexOD) as in the case of this particular pdf file, or (hexOA) for some other operating systems so is there a way one can go one step further to not only use the 's' pattern match option, but to then also define what the actual definition of 'newline' is supposed to be - so as to guarantee a match of what you are intending to match? i am familiar with 'input line seperator' $/ (which would be used for reading input from files), and with 'output line seperator' $\ (which would be used for - print "something\n", as in writing to files). but ive never heard of the 'pattern matching seperator' - which i think i would need in this case. thanks in advance for any help in educating me here, greg
_______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
