The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
PERL Error Asteroid High Level Programming 3 04-25-2008 02:15 AM
Run perl file in Crontab error. raccsdl Shell Programming and Scripting 2 11-13-2007 07:07 AM
error connecting database from perl DILEEP410 Shell Programming and Scripting 4 09-17-2007 09:03 AM
xml parsing error in perl bishweshwar UNIX for Advanced & Expert Users 1 05-30-2007 11:59 PM
Error with perl scripts... Amardeep SUN Solaris 1 06-19-2006 10:07 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-20-2008
dirdamalah dirdamalah is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 3
Post Perl Error

Code:
# perl -p -w -e 's/</book>(?:\n)<collection>(.*)</collectioninfo>//g' test1.txt
Bareword found where operator expected at -e line 1, near "s/</book>(?:\n)<collection>(.*)</collectioninfo"
Unquoted string "collectioninfo" may clash with future reserved word at -e line 1.
syntax error at -e line 1, near "s/</book>(?:\n)<collection>(.*)</collectioninfo"
Execution of -e aborted due to compilation errors.


Any help ?? Pleaaaasee !

Last edited by Yogesh Sawant; 06-23-2008 at 02:04 AM.. Reason: added code tags
  #2 (permalink)  
Old 06-20-2008
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
Try replacing "s///" by "s|||" if your regular expression contains slashes but you don't want to escape them first.
  #3 (permalink)  
Old 06-21-2008
KevinADC KevinADC is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2008
Posts: 731
He got the answer on at least two other forums so may not be coming back here to read this thread anymore.
  #4 (permalink)  
Old 06-21-2008
dirdamalah dirdamalah is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 3
it's works !!

Thx

Quote:
Originally Posted by KevinADC View Post
He got the answer on at least two other forums so may not be coming back here to read this thread anymore.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:55 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0