Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
the above obviously failed because of single quotes. thought i would use double quote instead..perl -nle '/tilda/ && s/\[// && s/\]// && print qq{insert into mytable + values(SEQ_MY_ID.nextval, '$_', '01',sysdate,'','')}' report.conf
there must be a simple fix but i can't get my head around it.. is there a way to fix it? thanks.% perl -nle "/tilda/ && s/\[// && s/\]// && print qq{insert into mytab +le values(SEQ_MY_ID.nextval, '$_', '01',sysdate,'','')}" report.conf _: Undefined variable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: quote in perl command line
by moritz (Cardinal) on Aug 09, 2007 at 14:41 UTC | |
|
Re: quote in perl command line
by swampyankee (Parson) on Aug 09, 2007 at 15:55 UTC | |
|
Re: quote in perl command line
by graff (Chancellor) on Aug 10, 2007 at 02:21 UTC | |
|
Re: quote in perl command line
by ForgotPasswordAgain (Vicar) on Aug 09, 2007 at 15:58 UTC | |
|
Re: quote in perl command line
by technojosh (Priest) on Aug 09, 2007 at 16:53 UTC |