comp.lang.perl.misc
  Home FAQ Contact Sign in
comp.lang.perl.misc only
 
Advanced search
February 2008
motuwethfrsasuw
    123 5
45678910 6
11121314151617 7
18192021222324 8
2526272829   9
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.perl.misc Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Luxury Newly Added Zenith Watches         


Author: df93f9ef
Date: Feb 27, 2008 23:49

Best Zenith Replica Watches | Fake Watch

http://www.replica-watch-shopping.com Since 2000 We are do online
replcia watches busienss from now on and we have many cusotmers from
USA, Europe and other country from India. buying replica watches will
save your lots of money and get same as 100%% original watches from our
high quality and lowest price replica watch online shop.

Best Zenith Replica Watches :
http://www.replica-watch-shopping.com/zenith_replica_watches/zenith_replica_watches_1...
Luxury Zenith Fake Watch :
http://www.replica-watch-shopping.com/zenith_replica_watches/zenith_replica_watches_1...

Replica Watches, Zenith has been made in Switzerland for 150 years.
Zenith has the El Primero which is their first chronograph, automated
watch.

Zenith watches have a sapphire crystal front. And offer straps of
colored crocodile leather, with silver Arabic numerals and hands, or
stainless steel links in either silver or gold with Roman numerals...
Show full article (2.02Kb)
no comments
  download ebooks,softwares,students tutorials here for free!!         


Author: priya4u
Date: Feb 27, 2008 21:03

download ebooks,softwares,students tutorials here for free!!

Download Latest Softwares Ebooks Students tutorials Games Ring tones
Wallpapers and Lots of fun everything for FREE only at www.studentshangout.com
no comments
  code help         


Author: jammer
Date: Feb 27, 2008 18:54

Why does this give a syntax error?

# not 2 arguments, print usage
if ($#ARGV != 1) {
print "\nusage: " . $ARGV[0] . "\[backupDir\] \
[backupConfigFile\]\n";
}
4 Comments
  Converting "’" to an Apostrophe?         


Author: maria
Date: Feb 27, 2008 18:21

I am using a CGI program to read XML files and extract their various
items. Somehow, my program converts the apostrophe "’" to ...
"\â\€\™". How do I program my CGI program to convert "’" to
an apostrophe, "'"? Is there a little CGI code that will convert
all these different strings (including dagger, ellipsis,
euro symbol, double quote, etc.) to their ASCII equivalents?
Thank you very much.

maria
29 Comments
  FAQ 4.40 What is the difference between $array[1] and @array[1]?         


Author: PerlFAQ Server
Date: Feb 27, 2008 18:03

This is an excerpt from the latest version perlfaq4.pod, which
comes with the standard Perl distribution. These postings aim to
reduce the number of repeated questions as well as allow the community
to review and update the answers. The latest version of the complete
perlfaq is at http://faq.perl.org .

--------------------------------------------------------------------

4.40: What is the difference between $array[1] and @array[1]?

The former is a scalar value; the latter an array slice, making it a
list with one (scalar) value. You should use $ when you want a scalar
value (most of the time) and @ when you want a list with one scalar
value in it (very, very rarely; nearly never, in fact).

Sometimes it doesn't make a difference, but sometimes it does. For
example, compare:

$good[0] = `some program that outputs several lines`;

with

@bad[0] = `same program that outputs several lines`;

The "use warnings" pragma and the -w flag will warn you about these
matters.

--------------------------------------------------------------------
Show full article (1.64Kb)
no comments
  how to remove the letter n from a line of text         


Author: pauls
Date: Feb 27, 2008 15:19

I want to replace all occurances of the letter n in a line of text.
The confusion I am having is due to the fact that n denotes a new line
in reg expressions.

I tried to do this:

s/n/fred/; to replace the letter n with fred. But, it did not happen.

This is an area of PERL for which I have not seemed to get it straight.
That is, when you want to replace a letter that is used by PERL in reg
expression operations.

Thanks!

P.
7 Comments
  subroutines vs method vs function         


Author: BH
Date: Feb 27, 2008 14:38

Hi,

Can someone clarify the 3 terms wrt Perl providing with some examples?

Regards,

BH
4 Comments
  parameterized sorting function         


Author: Art Werschulz
Date: Feb 27, 2008 14:24

Hi.

I would like to do radix sort on an array @A of strings having equal
length. Is there some way to do something like the following?

sub radixSort{
my @A = @_;
my $d = length($A[0]);
for (my $pos = $d - 1; $pos >= 0; $pos--) {
@A = sort sortFunction($pos) @A;
displayArray($pos, @A);
}
}

sub sortFunction {$a[$pos] <=> $b[$pos]}

IOW, I would like sortFunction to depend on a parameter.

Thanks.

--
Art Werschulz (agw STRUDEL comcast.net)
207 Stoughton Ave Cranford NJ 07016
(908) 272-1146
2 Comments
  RegEx - matching previous match         


Author: j ellings
Date: Feb 27, 2008 14:12

Hello.

I have an html file converted from PDF that includes the following
sample lines:

(html has been converted)

<i><b>Z & A Newsstand</b></i><br>
<i>Retail Food: Mobile Food Vendor</i><br>
<i>2 N 10th St</i><br>
<i>Philadelphia, PA 19107<...
Show full article (2.16Kb)
no comments
  RegEx - matching previous match         


Author: j ellings
Date: Feb 27, 2008 14:12

Hello.

I have an html file converted from PDF that includes the following
sample lines:

(html has been converted)

<i><b>Z & A Newsstand</b></i><br>
<i>Retail Food: Mobile Food Vendor</i><br>
<i>2 N 10th St</i><br>
<i>Philadelphia, PA 19107<...
Show full article (2.16Kb)
5 Comments
 
1 2