LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 09-29-2003, 06:27 PM   #1
mickeyboy
Member
 
Registered: Mar 2002
Location: indianapolis , in
Posts: 37

Rep: Reputation: 15
Howto edit a Perl file


How do you edit a Perl file?

thanks
jim
 
Old 09-30-2003, 12:21 AM   #2
vanhoof
Red Hat
 
Registered: Aug 2003
Location: Fayetteville, NC
Distribution: Red Hat Linux
Posts: 11

Rep: Reputation: 0
Typically with any old text editor... Can you see the contents of the file when you cat it:

# cat <file>

--chris
 
Old 09-30-2003, 05:49 AM   #3
mickeyboy
Member
 
Registered: Mar 2002
Location: indianapolis , in
Posts: 37

Original Poster
Rep: Reputation: 15
Yes but, you can't read it ,it's just a bunch of scramled characters.

Jim Tate
 
Old 09-30-2003, 07:24 AM   #4
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 31
If it is a bunch of characters, it is not a perl file. It must be some other binary file, and perl files end with an extension *.pl.
 
Old 09-30-2003, 07:25 AM   #5
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
Could be compressed, on the other hand perl tends to look like that anyway
can your read it with zcat? bzcat?
 
Old 09-30-2003, 04:41 PM   #6
vanhoof
Red Hat
 
Registered: Aug 2003
Location: Fayetteville, NC
Distribution: Red Hat Linux
Posts: 11

Rep: Reputation: 0
Try this:

# file <filename>

Perl files can be named anything. Post back the output of the file command.

--chris
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
howto edit etc/hotplug/blacklist??? lek Slackware 1 09-09-2005 04:47 PM
Perl or Bash Mass File Edit redneon Programming 1 10-14-2004 12:43 PM
KDE Howto edit / add to menus bpasdar Linux - Software 6 05-03-2004 06:18 PM
cgi perl : I cant get perl to append my html file... the_y_man Programming 3 03-22-2004 06:07 AM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 09:09 PM


All times are GMT -5. The time now is 09:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration