Search Discussions

28,390 discussions - 125,109 posts

  • Hello, folks! I have such line: int rand(2)?1:-1 It repeats in source code 5 times and executes over 800 times, due to performance issues, I don't want to wrap it with subroutine. How I can make this ...
    Артём ВарнайскийАртём Варнайский
    Mar 8, 2015 at 2:12 pm
    Mar 8, 2015 at 3:38 pm
  • Hi all, I'm just curious about something. What's the difference between using require 5.016; or use 5.016; The only thing I've seen is that if 5.16 isn't installed, 'use' outputs: Perl v5.16 ...
    Mar 5, 2015 at 2:12 am
    Mar 5, 2015 at 6:43 pm
  • Can you please answer this question? http://stackoverflow.com/questions/28857025/perl-open-output-file-in-same-endianess-as-input-file-utf-16be-vs-utf-16le When Perl opens an UTF-16 encoded file, ...
    Hans GinzelHans Ginzel
    Mar 4, 2015 at 3:06 pm
    Mar 4, 2015 at 3:06 pm
  • I put together an anonymous subroutine which partly works. There is an array called @tasks which is defined as a local variable in the main routine and when I call the anonymous subroutine, one can ...
    Martin G. McCormickMartin G. McCormick
    Feb 28, 2015 at 2:52 am
    Feb 28, 2015 at 10:55 pm
  • Hi! When writing a Makefile.PL for a module (no, I don't want to read about other ways to do it now), does it make sense to add ExtUtils::MakeMaker (EUMM) to the PREREQ_PM module prerequisites list? ...
    Alex BeckerAlex Becker
    Feb 27, 2015 at 10:41 pm
    Feb 27, 2015 at 11:57 pm
  • package vowCons2; use strict; use lib::avt; my $self = {}; sub new { my $this = shift; my ($WORD) = @_; my $voyConsDef = readConfFile($CONFIG_FILE/vowConsDef); $self- {'V'} = $$voyConsDef{'V'} ...
    Feb 20, 2015 at 3:30 pm
    Feb 20, 2015 at 5:30 pm
  • Hello Still need help. I copy all *.pm to /urs/local/share/perl/5.18.2/lib I also give the permission on *.pm files I get this message. jupiter@jupiter-OptiPlex-755:~/Documents/base-0.50$ ./base.pl ...
    Feb 20, 2015 at 12:38 pm
    Feb 20, 2015 at 2:01 pm
  • I copy the file Tie::IxHash to perl 5.18.2 and receive this message. Probably I have to copy the whole module all the content of Tie-IxHash-1.23.tar.gz. once decompressed. What to do ? ...
    Feb 19, 2015 at 8:50 pm
    Feb 20, 2015 at 1:59 am
  • hi Gary, hi List, today i am running opensuse 13.1 - and i am trying to install mozrepl and perl BTW - friends told me to avoid all perlbrew tings... so i did the following perl -MCPAN -e shell cpan ...
    Martin KasparMartin Kaspar
    Feb 19, 2015 at 1:59 pm
    Feb 19, 2015 at 1:59 pm
  • Hello, I used to work with a perl script that contains (use vt.pm). (vt.pm are code that complement the script) I remember that I have to copy the vt.pm file in perl somewhere. Since I am not very ...
    Feb 18, 2015 at 11:14 pm
    Feb 19, 2015 at 3:42 pm
  • Ok, this is not a code related question, but anyone has an idea of when/how/if it will be available the video of the FOSDEM Larry's talk? https://fosdem.org/2015/schedule/event/get_ready_to_party/ ...
    Luca FerrariLuca Ferrari
    Feb 18, 2015 at 3:54 pm
    Feb 18, 2015 at 3:54 pm
  • I'm still looking to get WWW::Mechanize::Firefox installed. It looks like I've got a more pressing issue. Even simple module installs aren't working properly. I'm working through the dependancy list ...
    Gary StainburnGary Stainburn
    Feb 16, 2015 at 1:46 pm
    Feb 17, 2015 at 5:03 pm
  • I've got a Fedora 21 laptop that I'm using to develop a WWW::Mechanize::Firefox based app which is going well. I've tried now to replicate this on two servers ready to put it live but I'm having the ...
    Gary StainburnGary Stainburn
    Feb 16, 2015 at 12:01 pm
    Feb 16, 2015 at 12:01 pm
  • Hi folks, I'm porting a WWW::Mechanize based program to WWW::Mechanize::Firefox because the web site I access is now much more Javascript based and maintenance is getting to be a nightmare. However, ...
    Gary StainburnGary Stainburn
    Feb 10, 2015 at 10:10 am
    Feb 10, 2015 at 10:37 am
  • Hi, Please excuse me if I am posting wrong question. I wan to search the source code of PERL builtin functions e.g. reverse function. How can I see that on my machine or on web? I went to github ...
    Prateek goyalPrateek goyal
    Feb 6, 2015 at 6:54 am
    Feb 6, 2015 at 8:31 am
  • Dear all, I meet a problem and I can't resolve it. Would you like to help me for it? I simple my problem to below text. $a content: a b c d e f j p k $b content x y z q w e n a s d $c content 1 2 3 3 ...
    Wang, Zeng-Sheng (TS-GSD-China-ZZ)Wang, Zeng-Sheng (TS-GSD-China-ZZ)
    Feb 5, 2015 at 9:04 am
    Feb 10, 2015 at 7:47 am
  • I'm trying to break out a timestamp into it's appropriate fields, like so: my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime($my_time); but no matter if I use localtime or ...
    Feb 4, 2015 at 7:21 pm
    Feb 5, 2015 at 2:04 am
  • I've given myself a headache googling on how to debug a perl script that does not run. Maybe `debug' is the wrong word... I'd love to know if there is a more accurage one. I realize this post is ...
    Harry PutnamHarry Putnam
    Jan 31, 2015 at 9:59 pm
    Feb 5, 2015 at 9:05 pm
  • Hey everyone, I'm trying to submit a form with WWW::Mechanize to post a new thread on a forum from the command line. The forum also requires an image to be uploaded with it. Anyway...here is my ...
    Jan 31, 2015 at 2:04 pm
    Jan 31, 2015 at 9:23 pm
  • In the following code I hoped to use `use Cwd abs_path;' to not only produce the absolute path for a named directory but to die if it could not... thereby getting around having to test the named dir ...
    Harry PutnamHarry Putnam
    Jan 27, 2015 at 2:37 pm
    Jan 28, 2015 at 5:20 pm
  • Which is generally considered the best practice way of executing system commands from within a Perl program? Should I use backticks or qx//, system(), or exec()? Or is there no "best way" and it's ...
    Jan 24, 2015 at 2:13 pm
    Jan 24, 2015 at 2:43 pm
  • I found this little snippet in a post (from 2000) by Randal L. Schwartz: http://www.perlmonks.org/?node_id=20235 The discussion was about: File::Slurp allows you read a filehandle into a scalar ...
    Harry PutnamHarry Putnam
    Jan 20, 2015 at 10:11 pm
    Jan 22, 2015 at 4:10 am
  • -- a Andy Bach, <span class="m_body_email_addr" title="a908a479818f024d9e05edf3ee8eded0" afbach@gmail.com</span 608 658-1890 cell 608 261-5738 wk
    Andy BachAndy Bach
    Jan 20, 2015 at 7:48 pm
    Jan 20, 2015 at 7:48 pm
  • Hi I am looking for the most performant way to achieve this I have a big list of text (470000+ lines in a hash) I then run a hash ref consisting of replacement text - pattern to search - optional 3rd ...
    Mike MartinMike Martin
    Jan 19, 2015 at 1:26 pm
    Jan 20, 2015 at 6:31 pm
  • So I've got a text file in a multi column format (three columns), each column is separated by a single space. Here is a snippet for reference: artless base-court apple-john bawdy bat-fowling baggage ...
    Jan 19, 2015 at 12:00 am
    Jan 19, 2015 at 2:17 am
  • Hey everyone, I'm trying to find information on how I can use regular expressions to populate a variable. I want to pull text between one set of characters and another set of characters and use that ...
    Jan 18, 2015 at 4:49 pm
    Jan 18, 2015 at 5:38 pm
  • thanks for that information great to hear that greetings to all of you matze -- <http://www.facebook.com/martin.kaspar.547 [image: gplus_Seiten_Signatur] ...
    Martin KasparMartin Kaspar
    Jan 13, 2015 at 7:33 am
    Jan 13, 2015 at 7:33 am
  • Hi, I talked to Shlomi Fish quite some time back about using Hebrew and a perl gui. The question was/is which gui? I seem to recall that gtk+ was about the only option that could do Hebrew properly ...
    Jan 9, 2015 at 9:32 pm
    Jan 14, 2015 at 3:02 am
  • Opening a directory and readdir with a grep in there to find specific filenames, how does that process collect the files? I mean will the generated @ar of files be oldest first or someother reliable ...
    Harry PutnamHarry Putnam
    Jan 9, 2015 at 1:54 am
    Jan 16, 2015 at 12:50 am
  • Hi all, this could be trivial, and I suspect the answer is that the regexp engine is smart enough, but suppose I want to test the following: $extention =~ / \.bat | \.BAT /x; is the following a ...
    Luca FerrariLuca Ferrari
    Jan 7, 2015 at 7:45 am
    Jan 8, 2015 at 1:58 pm
  • Hello, Could you please unsubscribe me from this mailing list. Sent from my HTC One™ VX, an AT&T 4G LTE smartphone
    Jan 6, 2015 at 1:45 am
    Jan 6, 2015 at 8:55 am
  • When running shell commands from perl script with an open() instead of system() or exec how is the return value snagged. I guess, if it doesn't die, it worked but how to snag that information and at ...
    Harry PutnamHarry Putnam
    Jan 5, 2015 at 11:21 pm
    Jan 6, 2015 at 5:04 am
  • Hello! Is correct that say() uses "n"? Why it does not use $\ (http://perldoc.perl.org/perlvar.htm#$OUTPUT_RECORD_SEPARATOR)? See http://perldoc.perl.org/functions/say.html. Consider Perl6::Say - ...
    Hans GinzelHans Ginzel
    Jan 5, 2015 at 1:27 pm
    Jan 5, 2015 at 7:52 pm
  • Is it possible to wrap a `find` command on multiple lines in a script? This is what I'm using now: foreach $dir_to_search (@dirs_to_search) { $dir_count--; @files = map { s|/home/user/public_html ...
    Jan 1, 2015 at 9:19 pm
    Jan 2, 2015 at 7:24 am
  • Hi ! I have the Idea to make a perl script (better than in bash) to make some configuration on linux. I think to have some files like param.txt with some lines like: param_one = ZZZ XX CCCC VV ...
    Alan GlaitAlan Glait
    Dec 30, 2014 at 3:47 am
    Dec 30, 2014 at 12:04 pm
  • Can anyone point me in the direction of more thorough documentation for the IO::Socket module? Seems like the documentation on perl.org is pretty limited. At least, it doesn't feel very thorough to ...
    Dec 29, 2014 at 4:23 pm
    Dec 29, 2014 at 7:35 pm
  • Hi All, I am doing Pattern matching of the expected string if matched then pass the next command.my code works as expected but gives warning. can any body please Explain me why i am getting this at ...
    Uday VernekarUday Vernekar
    Dec 29, 2014 at 11:17 am
    Dec 29, 2014 at 12:53 pm
  • Hello! How do i run and pass arguments to an anonymous subroutine that i shared on a safe compartment? My goal is to have a function that perform "dangerous" operations, that must be available to ...
    David Emanuel da Costa SantiagoDavid Emanuel da Costa Santiago
    Dec 28, 2014 at 6:36 pm
    Dec 29, 2014 at 12:04 am
  • Start with 'Hello World' then develop a search engine in Perl and an online game powered by Dancer2. With instant feedback and a personal mentor you'll soon be writing Modern Perl like a ...
    Andrew SolomonAndrew Solomon
    Dec 21, 2014 at 12:08 am
    Dec 21, 2014 at 12:08 am
  • Hi; I've got some strings that I need to parse the value(s) off of the key. The key is (possibly) space-separated and terminate by a colon, and the value is delimited by single quotes. But there are ...
    Kenneth WolcottKenneth Wolcott
    Dec 16, 2014 at 8:05 pm
    Dec 19, 2014 at 11:41 am
  • We've all seen and probably pounded the table a few times when that "Use of uninitialized value" warning pops up. Recently a worker in our group ran a script I wrote and got that warning due to an ...
    Martin G. McCormickMartin G. McCormick
    Dec 10, 2014 at 5:32 pm
    Dec 11, 2014 at 2:03 pm
  • It may be too much to expect that readers will read the code and comments since it is 107 lines long. However: To anyone that lends there time and energy...(thankyou!) The script was written to allow ...
    Harry PutnamHarry Putnam
    Dec 7, 2014 at 7:20 pm
    Dec 8, 2014 at 8:11 pm
  • Hello again! Prompt me please elegant and 'vanilla' way to taint some scalar. My vars lost their taint when I just split external string with regexp on param/val pairs, without checking them for ...
    Артём ВарнайскийАртём Варнайский
    Dec 6, 2014 at 2:48 pm
    Dec 6, 2014 at 10:01 pm
  • Hi All, Could you please let me know please, why this code is not working as I am trying to validate my email id to my mail server? my $ldap_server = "google.com"; # or some local mail server my ...
    Jitendra BarikJitendra Barik
    Dec 5, 2014 at 4:35 am
    Dec 6, 2014 at 9:17 am
  • This is a very old problem that apparently still persists. Some or all gzip files created on Unix can't be unzipped by Archive::Zip (1.38). There are tons of old posts from 2005 that mention this ...
    Mike FlanniganMike Flannigan
    Dec 4, 2014 at 12:13 pm
    Dec 7, 2014 at 7:11 pm
  • HI All, My code is: $version1 = "JITENDRA"; tie @array,Tie::File,"$rtf1" or die($!); for(@array){ #print "Hi"; s/\%VERSIONS\%/$version1/g; } untie(@array); FILE ...
    Jitendra BarikJitendra Barik
    Dec 4, 2014 at 10:36 am
    Dec 5, 2014 at 5:14 pm
  • Hello, #1. Is there a framework to send/receive the large binary data flow? I know thrift can do, but just don't like it. #2. Is there a native perl library to implement the features which 'iostat' ...
    Ken PengKen Peng
    Dec 4, 2014 at 9:32 am
    Dec 4, 2014 at 9:32 am
  • I’m having trouble with setting a field on a web page. Here is how I’m attempting to do this: ## ## fourth page ## ok($mech- form_name('ftp_information'),"getting the ftp_information form") ...
    Patton, Billy NPatton, Billy N
    Dec 3, 2014 at 7:50 pm
    Dec 3, 2014 at 7:50 pm
  • Hi, I'm unable to find informat= ion on this issue. Whenever I try to install Net::IP (to do a simple = DHCP configuration file that will make IP address reservations DNS files th= at will do forward ...
    Dec 2, 2014 at 10:17 pm
    Dec 2, 2014 at 11:11 pm
  • We run some FreeBSD systems using FreeBSD9.1 and 9.3 and the response to perl -version is: This is perl 5, version 18, subversion 4 (v5.18.4) built for amd64-freebsd-thread-multi On December 1 of ...
    Martin G. McCormickMartin G. McCormick
    Dec 2, 2014 at 5:46 pm
    Dec 2, 2014 at 8:05 pm
Group Navigation
period‹ prev | Latest | first ›

Top users

Chas Owens: 2148 posts John W . Krahn: 2133 posts John W . Krahn: 2029 posts Jenda: 1851 posts Wiggins: 1664 posts Bob Showalter: 1611 posts Drieux: 1368 posts R. Joseph Newton: 1292 posts Rob Dixon: 1241 posts Dan: 1136 posts Jeff 'japhy/Marillion' Pinyan: 1093 posts Perl: 1091 posts John W. Krahn: 1083 posts Randal L. Schwartz: 1034 posts Peter: 1020 posts Tim Johnson: 993 posts Paul Johnson: 959 posts Gunnar Hjalmarsson: 930 posts Shawn H Corey: 915 posts Tom Phoenix: 906 posts
show more