This is the optimal solution if all characters are codified using the &___; notation. If you notice, the colon (':') is not codified, which makes the process a...
Allo! ... Here is the solution: Use regexp replacement instead: $string =~ s/&\#(\d+);/chr($1)/ge; or even better, use a module: use HTML::Entities; $string =...
I am a perl newbie and need to do text substitution in a file. I want to do that without having to open two files-one for reading the contents and another for...
... Are you doing this on the commandline or on the web? AFAIK, Perl parses the file line-by-line by default. Anyway, what you probably want to do is to save...
If your substitution is not very complex (that is, it is just a single s///), then the command line might be your best option. Checkout 'perldoc perlrun' for...
Hi Group, I need help in modifying data files that are created on my PC by the data feed I get from my stock broker. These files are text files in csv format....
... (Warning: Code not tested) Assuming that the filename is in $name, you can use if($name =~ /^(.+)(EQ|2ndCode|3rdCode)(\d+)$/) { # now $1 contains the...
Ronald, Thanks very much for taking the trouble. Now that I have the pointers I will get cracking on trying to work out the solution. Regards Rakesh...
Greetings all! I am new to Perl as well as this group so pls. forgive me if I am asking old/stupid questions... Basically I want the perl script to track the...
hi friends, can anyone help me do this program, i do ot know perl at all. i want to learn , please ,,, can anyne help me learn ,,, check out the link below ...
Hello, I'm relatively mewbie in Perl and I'm not very expert with it. Consequentely I have a big problem with my web form processing script. The problem is :...
Do the following: 1) Start by reading a couple of books to get acquainted with the language syntax. I recommend "Learning Perl" by Randal Schwartz et al, aka...
There is no single command as such.. use need to to use sybase::DBlib module and then use the the funtions in the module (for example connect, execute,,...
Santhi Kumar
Santhi.Kumar@...
Jun 14, 2004 8:32 am
1551
Thanks Santhi. This code help me how to connect to Sybase. Regards. Dave. Santhi Kumar <Santhi.Kumar@...> wrote: There is no single command as...
Hi friends, can anyone help me do the following project, if anyone have already done , please do help me. Project 1 - Small Shell Create a simple restricted...
I have a perl script that is run in the cgi-bin directory. This script belongs to the group xxx.I want it to create a new directory in another location(not ...
Can anyone help me with using the sort function in Perl? I am printing a list of data that I would like to have sorted by a numeric value. I can't seem to get...
I'm understanding that you have lines of text with fields delimited by |, so when you get the lines from the file, you want to sort the lines by the lexile...
Do a 'ps aux' on the command line to find out who is runnign apache. Look for httpd or apache. A grep might be helpful: $ ps aux | grep httpd The user is...
... slackusr> @indata = sort {(split(/\|/, $a))[3] <=> (split(/\|/, $b))[3]} slackusr> @indata; slackusr> Would be a little nicer to load the items into a list...
... beckywb> require "cgi-lib.pl"; beckywb> $match="no"; beckywb> &ReadParse; No no no. Don't use this ancient unsupported library. use CGI.pm... it comes...
I don't understand the reference to "look at Sort::Fields in the CPAN". What are you referring to? ... $b))[3]} ... lists ... Transform, ... 777 0095 ... Perl...
Merlyn refers to the Perl on-line repository at cpan.org. You can also search at search.cpan.org. On Windows you can run 'ppm' from the command line and then...
Hello, I am trying to write a script that can parse CDATA section of an xml document. The element where the CDATA section lives is called AttData and there...
Hi Everyone, I hope someone can help. I am trying to extract all users from a .htpasswd file who is in an array and put them in a new file. Here is the code I...