top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

How to elimate special character "^@" in text by perl?

+2 votes
68 views

I try to eliminate below special character "^@" by perl in the attachment. I have tried "$.*^' regular expression for elimination in perl but fail.

Have anyone got the experience to eliminate such special character? appreciate your help.

posted Nov 17, 2013 by Deepankar Dubey

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

+1 vote

I try to eliminate below special character "^@" by perl in the attachment.

That is probably a representation of a zero-byte, just like ^A is a one-byte, etc.

I have tried "$.*^' regular expression for elimination in perl but fail

What do you expect "$.*^' to do? It looks bizarre to me.

I would try "s/x{00}/./g", which is just one of the many representations of a substitution that replaces all zero-bytes with a dot.

answer Nov 17, 2013 by Bob Wise
Similar Questions
+2 votes

Is there any Bugzilla API to upload and download bug's attachment files with perl script?
I want to write a Perl script to download all the attachment in a specified bug, and save the files to local directory.
Attachment method in Bugzilla::Webservice::Bug seems not to download or upload attachment from or to bug.

+1 vote

I have tried to install module PDF::FromHTML from cpan but not able to get it.
Please let me know any other module to do the same. please help

+1 vote

I have a perl script test.pl. I want to create desktop shortcut. While I click on this shortcut icon it will run my perl script and keep the terminal open.

I have tried the command

ln -s test.pl ~/Desktop/abc

while I click on this abc Icon from my desktop. It run and same time the terminal exit. Could you please help here?

My requirement is:

I want to create desktop shortcut for particular perl program. While I click on this icon from desktop, it should run and keep the terminal open.

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...