|
odd chars in perldoc prior to 5.10.0 (was: Re: How to print question) Steven M. O'Neill wrote: mmccaws2 <mmccaws(a)comcast.net> wrote: Your code is almost exactly what I had. But what is the "$| = 1;" for? perldoc perlvar | grep '$|' After reading, I threw this into my linux console (where perldoc defaults to my 5.8.8 installation compiled from the tarball.) I... 21 Apr 2008 03:30
Regx to remove all characters after a match I can not figure out why this is not printing just 123: $name = "123\n456\n789"; $name =~ s/\n.*//; print $name; which outputs: 123 789 If I write it in php using preg_replace , it works! ... 18 Apr 2008 07:36
FAQ 9.25 How do I fetch/put an FTP file? 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 . --------... 17 Apr 2008 21:18
get quote enclosed field in a line is there a simple way in perl, python, or awk/shell/pipe, that gets the user agent field in a apache log? e.g. the typical line is like this: 189.139.109.235 - - [07/Apr/2008:00:00:16 -0400] "GET / Periodic_dosage_dir/lacru/manara.html HTTP/1.1" 200 1933 xahlee.org "http://xahlee.org/Periodic_dosage_dir/lacru/... 18 Apr 2008 13:26
FAQ 9.19 How do I return the user's mail address? 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 . --------... 17 Apr 2008 14:57
Trouble initializing multidimensional array On Apr 17, 12:30 pm, dave <davewu...(a)gmail.com> wrote: I have trouble initializing the following multidimensional array my @Table = ( [],[],[],[] ); push (@Table [ 't1', 't2', 't3', 't4' ] ) ; push (@Table [ 'x1', 'x2', 'x3', 'x4' ] ); # and so on you forgot the comma between the array and the v... 17 Apr 2008 14:57
Trouble initializing multidimensional array I have trouble initializing the following multidimensional array my @Table = ( [],[],[],[] ); push (@Table [ 't1', 't2', 't3', 't4' ] ) ; push (@Table [ 'x1', 'x2', 'x3', 'x4' ] ); # and so on foreach my $next (@Table) { if ( @$next[0] eq 'xx' ) { # do something } } When I run the foreac... 17 Apr 2008 14:09
uninitialized value in multidimensional array I've the following perl : my @Table = ([],[],[],[]); push ( @Table, 'text1', 'test2', 'text3','text4'); foreach my $next (@Table)) { ... 17 Apr 2008 15:45
How to print question I can't quite recall the printing term so please bear with me. When you want your user to know that something is happening the app often will print to the screen saying something like "load ...". I want to create the same sort of script that produce a "." or similar symbol for each fraction of second that goes b... 20 Apr 2008 02:37
FAQ 9.20 How do I send mail? 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 . --------... 17 Apr 2008 09:20 |