FAQ

Search Discussions

34 discussions - 162 posts

  • Hi, I am new with perl and we have virtual machines in our infra. i want to use perl sys::virt module to manage them, means to shutdown / start vm by script and for that i wrote below small code ...
    Benjamin FernandisBenjamin Fernandis
    Mar 27, 2014 at 1:31 am
    Mar 29, 2014 at 9:03 am
  • From Archive::Tar::File - what's '_' and where is it documented? sub _filetype { my $self = shift; my $file = shift; return unless defined $file; return SYMLINK if (-l $file); # Symlink return FILE ...
    Shawn wilsonShawn wilson
    Mar 17, 2014 at 9:05 am
    Mar 20, 2014 at 10:08 am
  • Hi all, I tried to extract string from perl script, so I wrote following script: 5# matching string 6 # sting start with ' or ". 7 # assume string is on same line. 8 # 9 my $pattern = '(\"|\').*\1' ...
    Alex ChiangAlex Chiang
    Mar 14, 2014 at 11:26 am
    Mar 18, 2014 at 10:48 am
  • i want to sort an array for certain key words first and then alphabetically. my @foo = qw/foo bar baz first second third/; foreach my $i (sort {$a cmp $b} @foo) { print "$i\n"; } How do I make ...
    Shawn wilsonShawn wilson
    Mar 25, 2014 at 1:55 pm
    Mar 26, 2014 at 12:40 pm
  • So, when I do this: my $src = (grep {/.*(ARIN|APNIC).*(\n)?/; $1} @ret)[0]; I get a full line and not just the capture: # ARIN WHOIS data and services are subject to the Terms of Use When I do this ...
    Shawn wilsonShawn wilson
    Mar 3, 2014 at 11:36 pm
    Mar 8, 2014 at 8:46 am
  • Hi there, I got a wired bug with the following perl script: 35 # return non-negative value if particular character is in string array 36 # otherwise, return -1 sub is_in_string { 38 # @s: string ...
    Alex ChiangAlex Chiang
    Mar 12, 2014 at 4:58 am
    Mar 13, 2014 at 11:58 pm
  • Hi all, I'm a perl beginner, and when I tries to practice delete built-in, I find it's not working as I supposed to. 44 my %employ_list = ("e10220" = "Du", "e10250" = "Vic"); 45 # iterate thru with ...
    Alex ChiangAlex Chiang
    Mar 9, 2014 at 5:41 am
    Mar 9, 2014 at 4:32 pm
  • I'm trying to determine how Perl evaluates operands for expressions. I expected the following code to output 3, 4, and 5, as it would if executed as a C++ or Java program. The actual output that I ...
    Ralph GroveRalph Grove
    Mar 14, 2014 at 5:04 pm
    Mar 17, 2014 at 5:42 pm
  • Hi there! I am needing a module to parse a HTML page and to take action on it. Any idea? -- Ariel
    Ariel HosidAriel Hosid
    Mar 13, 2014 at 1:34 pm
    Mar 14, 2014 at 3:28 am
  • Hello everyone! Can anyone recommend me literature that treats regular expressions and how to analyze files? Thank you! -- Ariel
    Ariel HosidAriel Hosid
    Mar 11, 2014 at 5:01 pm
    Mar 11, 2014 at 6:40 pm
  • I have the following string I want to extract from: my $str = "foo (3 bar): baz"; and I want to to extract to end up with $p1 = "foo"; $p2 = 3; $p3 = "baz"; the complication is that the \s(\d\s.+) is ...
    Bill McCormickBill McCormick
    Mar 8, 2014 at 6:05 am
    Mar 9, 2014 at 4:32 am
  • Hi Everyone, I need your help with this one please. I have a config file that is written/updated with a Python based web front end tool. I would like to add/remove hosts to/from this config file ...
    Wernher EksteenWernher Eksteen
    Mar 2, 2014 at 7:42 pm
    Mar 4, 2014 at 5:08 am
  • Hello, I am trying to create a module that exports a few subroutines in the script that uses it. This is OK, very simple to do using Exporter. But I also want that module to export strict and ...
    Octavian RasnitaOctavian Rasnita
    Mar 30, 2014 at 10:27 am
    Mar 31, 2014 at 9:46 am
  • Hi all, I'd like to build a hash mapping from "keyword" = value. By keyword, I mean all reversed words in http://learn.perl.org/docs/keywords.html. Do you guys know any csv or text file containing ...
    Alex ChiangAlex Chiang
    Mar 13, 2014 at 1:29 pm
    Mar 13, 2014 at 2:16 pm
  • Hi, I have installed perl via cygwin on my Windows 7 computer and have a perl script that I would like to execute simply by double-clicking on its name from a Windows filemanager window. (That is, I ...
    Alek TrishanAlek Trishan
    Mar 8, 2014 at 8:29 pm
    Mar 9, 2014 at 8:55 pm
  • Hi all, how do you get all words starting with letter 'r' in a string. thanks,rakesh
    Rakesh sharmaRakesh sharma
    Mar 8, 2014 at 12:50 pm
    Mar 8, 2014 at 6:09 pm
  • Can somebody help me understand this? Given this loop, and the logged output following ... my $found; for( @$products ) {; $found = $$_ =~ m|$project|; $dump = Data::Dumper- Dump([$_, $project, $$_, ...
    Bill McCormickBill McCormick
    Mar 1, 2014 at 5:13 am
    Mar 1, 2014 at 3:26 pm
  • Hi, I am new with perl and using it for my sys admin jobs. I want to use TDD / BDD with my perl scripts to make it more robust. Can you please suggest me that how to integrate TDD/BDD with perl ...
    Benjamin FernandisBenjamin Fernandis
    Mar 31, 2014 at 2:51 am
    Mar 31, 2014 at 8:08 am
  • Here is the code that is not working #!/usr/bin/perl use diagnostics; use strict; ... my $dud1 = "dud1"; my $dud2 = "dud2"; my $w_player = "?"; my $n_player = "?"; my $e_player = "?"; my $s_player = ...
    Thomas H. GeorgeThomas H. George
    Mar 19, 2014 at 6:49 pm
    Mar 19, 2014 at 7:23 pm
  • hello All, Trying install List-AllUtils-0.07. Need dependencies: C:\yosef\cpan\List-AllUtils-0.07 perl Makefile.PL Set up gcc environment - gcc.exe (rubenvb-4.5.4) 4.5.4 Checking if your kit is ...
    Yosef LevyYosef Levy
    Mar 18, 2014 at 10:30 am
    Mar 18, 2014 at 11:54 am
  • Hello All, I am interesting install Perl and CPAN modules in custom location folders. I am using WIN7 64bit. Pls. provide me step by step in depended installation from scratch. Rgds.
    Yosef LevyYosef Levy
    Mar 4, 2014 at 10:42 am
    Mar 4, 2014 at 2:46 pm
  • Howdy, I get a 404 Not Found when I go to that link. You can use Perl as a browser, but it's not beginner material and Perl generally does not do simple browsing as well as a browser. When you see ...
    Mike FlanniganMike Flannigan
    Mar 25, 2014 at 11:25 am
    Mar 26, 2014 at 4:11 pm
  • Hi, I'm brand new to Perl. I'm reading perldoc and working through Simon Cozens online book to get me started. Even though it is 14 years old and some syntax has changed in the meantime, figuring out ...
    Maurice McCarthyMaurice McCarthy
    Mar 24, 2014 at 2:45 am
    Mar 24, 2014 at 3:28 am
  • I have 6 elevators, and 50 people. These people weigh between 120 and 350lbs. How can I find the optimal way of distributing these people into the 6 elevators so that each elevator carries ...
    JbiskofskiJbiskofski
    Mar 21, 2014 at 3:42 pm
    Mar 22, 2014 at 5:40 am
  • Hello All, Paul said: ----------------------- Depending on the distribution you are using you might have a tool to automate the process of recursively installing dependencies. I have the following ...
    Yosef LevyYosef Levy
    Mar 18, 2014 at 11:54 am
    Mar 18, 2014 at 12:08 pm
  • I have some text files from which I would like to remove the first line, but only if it's blank. Any hints? I tried a few things, but the results haven't quite been satisfactory. Thanks!
    SbSb
    Mar 7, 2014 at 9:58 pm
    Mar 8, 2014 at 7:37 am
  • Hi, I have a requirement where I need different appenders writing to same log file for different layout patterns. Below is my log4Perl config file :- log4perl.logger.timestamp = INFO, LOG1 ...
    Punit jainPunit jain
    Mar 28, 2014 at 1:02 pm
    Mar 28, 2014 at 8:17 pm
  • Hello, Is there a book avaiable for Perl event driven programming? I tried searching but got no luck. Thanks.
    Yonghua PengYonghua Peng
    Mar 27, 2014 at 2:33 pm
    Mar 27, 2014 at 2:41 pm
  • Hi everyone, I have started a personal blog related to perl/cgi. Here: http://simpleperlforweb.blogspot.in/ It is something I'm doing with good intention for the perl community. I don't have vast ...
    Ahmad BilalAhmad Bilal
    Mar 1, 2014 at 6:39 am
    Mar 1, 2014 at 2:51 pm
  • Hi all, I've a problem that has to presents data into an array in a set of string with a variable left/right padding depending on the field position in the arrat. Therefore I'm building a very long ...
    Luca FerrariLuca Ferrari
    Mar 28, 2014 at 12:15 pm
    Mar 28, 2014 at 12:15 pm
  • I posted to perl.beginners and since it hasn't shown up here, I thought I had better see if everything was OK with my connection to the mailing list. My apologies.
    Alek TrishanAlek Trishan
    Mar 8, 2014 at 10:51 pm
    Mar 8, 2014 at 10:51 pm
  • Hello, Since Mogilefs is written with Perl and I asked the question on the list of Mogilefs but didn't get an answer, so I reposted the question here. What server is suggested for running the front ...
    Yonghua PengYonghua Peng
    Mar 6, 2014 at 2:40 pm
    Mar 6, 2014 at 2:40 pm
  • Hi, is there some perl module to handle emacs org-mode tables? -- Debugger entered--Lisp error: (error "No error here") signal(error ("No error here")) error("No %s here" "error")
    LeeLee
    Mar 6, 2014 at 11:58 am
    Mar 6, 2014 at 11:58 am
  • Hey Folks, When run as a BBEdit text-filter the script works fine with the ascii line, but it produces goop for the utf8 characters. Obviously I'm doing something wrong and need an assist. Thank ...
    Christopher StoneChristopher Stone
    Mar 2, 2014 at 12:25 am
    Mar 2, 2014 at 12:25 am
Group Navigation
period‹ prev | Mar 2014 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions34
posts162
users57
websiteperl.org

57 users for March 2014

Shawn wilson: 13 posts Shlomi Fish: 8 posts Alex Chiang: 7 posts Uri Guttman: 7 posts Dr.Ruud: 6 posts Rob Dixon: 6 posts Shawn H Corey: 6 posts Yonghua Peng: 6 posts Bill McCormick: 5 posts Jim Gibson: 5 posts Andy Bach: 4 posts Ariel Hosid: 4 posts Brian Fraser: 4 posts Janek Schleicher: 4 posts Jim Gibson: 4 posts Octavian Rasnita: 4 posts Paul Johnson: 4 posts Sebastien Feugere: 4 posts Wernher Eksteen: 4 posts Alek Trishan: 3 posts
show more
Archives