First  |  Prev |  Next  |  Last
Pages: 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
Why $NR and $INPUT_LINE_NUMBER are not the same as $.?
I have the following perl script. $ cat main.pl #!/usr/bin/env perl #use warnings; while(<STDIN>) { print "#$_"; print "\$INPUT_LINE_NUMBER=$INPUT_LINE_NUMBER\n"; print "\$NR=$NR\n"; print "\$.=$.\n"; } However, the output shows that $NR and $INPUT_LINE_NUMBER are not the same as $.. Accordin... 22 May 2010 23:37
What do N and R in $NR stand for?
I know $NR is the same as $INPUT_LINE_NUMBER. But I'm wondering what N and R in NR stand for. I think R might stand for numbeR? Does N stand for iNput or liNe? ... 25 May 2010 17:57
FAQ 4.10 Why aren't my random numbers random?
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 . --------... 22 May 2010 12:44
Conflict between 32 and 64bit (WAS: FAQ 5.6 How can I copy afile?)
On 05/22/10 15:39, Ben Morrow wrote: For some reason a lot of vendor distributions of perl seem to break this. The standard build on Win32 also breaks this. In both cases (and, really, in general) the best solution is to build your own perl installed in /opt/perl or somewhere, with the correct director... 22 May 2010 11:38
Where is the perl documentationn for '..' (command line)
man perldata touchs '..' a little bit. But it seems that there should a place that discuss '..' in details. Would you please let me know where it is? ... 28 May 2010 12:38
FAQ 5.6 How can I copy a 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 . --------... 22 May 2010 06:12
FAQ 7.19 What's the difference between deep and shallow binding?
This is an excerpt from the latest version perlfaq7.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 . --------... 21 May 2010 18:19
FAQ 3.16 How can I make my Perl program take less memory?
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 . --------... 21 May 2010 12:47
Strange behaviour of LWP::UserAgent
I'm trying to use LWP::UserAgent on Kubuntu 10.04. When setting a proxy, I use this code to load my wget's proxy settings: if (open(my $wgetrc, '<', $ENV{HOME} . '/.wgetrc')) { while (<$wgetrc>) { if (/(http|ftp|https)_proxy\s*=\s*(\S+)/) { print STDERR "\$ua->proxy($1, $2)\n"; ... 21 May 2010 08:23
FAQ 4.55 How do I process an entire hash?
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 . --------... 21 May 2010 00:50
First  |  Prev |  Next  |  Last
Pages: 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59