Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^4: Disable Regex

by SavannahLion (Pilgrim)
on Aug 26, 2009 at 07:26 UTC ( [id://791272] : note . print w/replies, xml ) Need Help??


in reply to Re^3: Disable Regex
in thread Disable Regex

Really?! Buggers... so it will work that way. To find time to work on the problem, I simply scanned through the file until I found a section causing the headache and copied it into a perl file and assigned it to a variable (too lazy to create a file, open then read it I guess). Then I moved the sample+Perl file to a different computer (my laptop) so I can work away from the main computer.

I'll read it directly from a file and see how it goes.

Replies are listed 'Best First'.
Re^5: Disable Regex
by ig (Vicar) on Aug 27, 2009 at 09:05 UTC

    You might like the __DATA__ section:

    use strict; use warnings; foreach (<DATA>) { chomp; print "$_\n";; } __DATA__ illegal\characters*example? ab\delta.txt ab*delta.txt

    Which produces

    illegal\characters*example? ab\delta.txt ab*delta.txt