First  |  Prev |  Next  |  Last
Pages: 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
FAQ 5.29 How can I read in a file by paragraphs?
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 . --------... 5 Mar 2010 06:07
Core dump with "in memory" file
Hi! #!/usr/bin/perl use strict; use warnings; my $stderr; close STDERR; open STDERR,'>',\$stderr or die; warn "a\n"; $stderr =~ s/./xx/g; # eof $ ./test.pl Segmentation fault What is the problem? $ perl -v This is perl, v5.10.1 (*) built for i686-linux Frank -- Dipl.-Inform. Frank Seit... 7 Mar 2010 19:34
FAQ 8.23 How can I open a pipe both to and from a command?
This is an excerpt from the latest version perlfaq8.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 Mar 2010 18:03
How can I write "print $F[4] if exists $F[4]" even simpler?
How can I write print $F[4] if exists $F[4]; even simpler? print if exists for $F[4]; print if exists $_ for $F[4]; don't work. ... 5 Mar 2010 13:55
Is there a "poor man's" perldoc?
Hi, I use the perldocs frequently when I'm programming in Perl. However, on some systems I've used, "perldoc" is apparently not installed (despite the fact that Perl is). What I'd like is a way to cleanly extract the perldoc documentation from a module that is installed on that system. (For example, I'd lik... 8 Mar 2010 02:06
perl -014pe
Hi, I saw the following code about splitting a file into several pieces: perl -014pe 'open(STDOUT,">fred.$.")' fred I couldn't find what -014 means. Please advise. Thanks in advance. Nick ... 4 Mar 2010 15:47
FAQ 7.13 What's a closure?
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 . --------... 4 Mar 2010 12:18
Prevent script from adding an extra line at the end of file
Here is my script: #!/usr/bin/perl use strict; use warnings; my $infile = 'Pannaway.txt'; my $outfile = 'BASIP.list'; my $line = ''; open( INFILE, "< $infile" ) or die "Can't open $infile : $!"; open( OUTFILE, "> $outfile" ) or die "Can't open $outfile : $!"; while ($line = <INFILE>){ if ($line =~ /BAS-/)... 8 Mar 2010 09:40
FAQ 4.65 How can I get the unique keys from two hashes?
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 Mar 2010 00:10
Detecting Bourne (or csh) shell from Perl
C::Scan module uses this construct my $cmd = qq(echo '#include "$filename"' | $Cpp->{cppstdin} $Defines $addincludes $Cpp->{cppflags} $Cpp->{cppminus} |); Obviously, is supposes Bourne (or C) shell; so this breaks on ports which use DOSISH shells. a) is $^O =~ /win32/i a fool-proof way to detect such port... 10 Mar 2010 16:25
First  |  Prev |  Next  |  Last
Pages: 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91