Hello! I am trying to write a simple Perl script to edit a file using two other source files named infra_east.txt and infra_west.txt. Please excuse my ignorance on this. I'm sure there are much smarter ways to achieve what I'm trying to achieve but this is the best I found so far. It's my first time dabbling with Perl.
When I type this into the console: perl -i.old -p -e /s/$(cat infra_east.txt)/$(cat infra_west.txt)/ig configfile.cfg I get this: Barewood found where operator expected at -e line 1, near "/s/emile" (Missing operator before emile?) syntax error at -e line 1, near "/s/emile" Excecution of -e aborted due to compilation errors. I basically copied an example from this page below. It worked when I tested it before. Not sure what's different. I have tried lots of variations on my line above. It appears exactly the same as what's on that page and my test script. http://open.itworld.com/nl/unix_sys_adm/09252002/ The weirdest thing is that when I put this"barewood" error message into Google, it returned 0 results. Hopefully someone out there can give me a shove in the right direction on how I can make it work. The issue seems like something very small. Thanks for any help! Mike PS: Please do not reply via e-mail as this account has not been in use for years. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/