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 am sure there are much better ways to do what I am doing but this is the best I can come up with on my currently limited knowledge. It's my first time dabbling with Perl.
When I put the following line in my command console I get this error: 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. Here is the script: perl -i.old -p -e /s/$(cat infra_east.txt)/$(cat infra_west.txt)/ig configfile.cfg I basically copied an example from this page. It worked when I tested it before. Not sure what's different. It appears exactly the same as what's on that page and my test script. http://open.itworld.com/nl/unix_sys_adm/09252002/ Can anyone give me a shove in the right direction? I have searched a grat deal and haven't found anything explaining this. Oddly, a Google search for this "barewood" error turns up no results. Weird. Thanks very much for any help!!! Mike PS: Please don't use the e-mail in my posting. It hasn't been in use for years. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/