First  |  Prev |  Next  |  Last
Pages: 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
Is there something like 'accumulate' in mit-scheme or C++?
Hi, I use the following command to OR the values in an array. I'm wondering what is the best way to do so. A function similar to 'accumulate' in mit-scheme or C++, may be helpful. But I don't find it in perl. my @array=(0,0,1); my $result=0; map { $result = $result || $_} @array; print $result, "\n"; Reg... 16 Jul 2010 14:20
FAQ 5.25 How do I randomly update a binary file?
This is an excerpt from the latest version perlfaq5.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 . --------... 15 Jul 2010 18:43
NEED JSF RESUMAES
Please Reply to Sooraj(a)logicplanet.com Hi Partners, Hope you are doing great!!! Please let me know if you have any suitable consultants for below position J2EE Developer with JSF Exp Trenton, NJ long term DES: 6+ Years of experience with J2EE stack Strong Java web interface devel... 15 Jul 2010 14:17
NEED JS
Please Reply to Sooraj(a)logicplanet.com Hi Partners, Hope you are doing great!!! Please let me know if you have any suitable consultants for below position J2EE Developer with JSF Exp Trenton, NJ long term DES: 6+ Years of experience with J2EE stack Strong Java web interface developm... 15 Jul 2010 16:30
FAQ 3.28 I've read perlembed, perlguts, etc., but I can't embed perl in my C program; what am I doing wrong?
This is an excerpt from the latest version perlfaq3.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 . --------... 15 Jul 2010 12:02
FAQ 3.3 Is there a Perl shell?
This is an excerpt from the latest version perlfaq3.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 . --------... 15 Jul 2010 00:10
How can I get the CENTER n chars from a string?
Lets say I want the CENTER 2 characters from any (even length) string? 123456 .. 34 ABC123 .. C1 1223 ..22 1234567890 .. 56 AB .. AB is there A regex that can handle this for ANY even length string? Im pretty good with regexes but I cant think of one that can handle it. sorta like s/(.+)(..)(.+)/$2/ ... 20 Jul 2010 11:19
FAQ 9.10 How do I decode or create those %-encodings on the web?
This is an excerpt from the latest version perlfaq9.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 . --------... 14 Jul 2010 12:04
while() doesn't localize $_ but for() does in some situations.Is this expected?
Matthew Horsfall wrote: ) It seems that while() loops don't localize $_ in certain situations, ) whereas for loops do. For loops don't *localize* $_ either. What they do is *alias* $_ to whatever they're looping on. Try: sub foo { print } for (<STDIN>) { foo } As opposed to: sub foo { print } my $_; for... 14 Jul 2010 09:50
while() doesn't localize $_ but for() does in some situations. Is this expected?
It seems that while() loops don't localize $_ in certain situations, whereas for loops do. The following works fine: $ echo Test | perl -e 'for (qw(Word)) { for (<STDIN>) { print "$_"; exit;} }' Test Whereas the following crashes: $ echo Test | perl -e 'for (qw(Word)) { while (<STDIN>) { print "$_"; exi... 14 Jul 2010 10:56
First  |  Prev |  Next  |  Last
Pages: 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29