FAQ

Search Discussions

154 discussions - 770 posts

  • Hello Years ago I used to work with FORTRAN, RPG GAP 2 and a smidgeon of basic. Code was written one line at a time, the first section of code was Input data, the next section was calculations, the ...
    BrianBrian
    Oct 27, 2008 at 5:10 pm
    Oct 30, 2008 at 7:53 am
  • Hi All! I need to capture something in braces using regular expressions. But I don't need to capture wrong data: [Some text] - correct (Some text) - also correct [Some text) - wrong (Some text] - ...
    Vyacheslav KaramovVyacheslav Karamov
    Oct 3, 2008 at 8:52 am
    Oct 7, 2008 at 3:33 pm
  • Hi All, Can somebody please tell me what is the meaning of $^X . Regards Irf. This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain ...
    Irfan SayedIrfan Sayed
    Oct 14, 2008 at 11:54 am
    Oct 15, 2008 at 7:28 pm
  • Hello I would like to do a recursive search of directories and files, checking to see if a file contains a certain string. <STDIN will be a string containing whitespace(s). As soon as I hit enter, I ...
    BrianBrian
    Oct 26, 2008 at 8:52 am
    Oct 27, 2008 at 9:15 am
  • Dear all: I want to use hash to keep my records. But before using it, I want to determine whether the value of the key exist? Below is my source code: if($hash{$key} eq "") { print "the value of the ...
    LoodyLoody
    Oct 6, 2008 at 1:25 pm
    Oct 8, 2008 at 10:02 pm
  • I have a string of text that I want to split on the tabs: while (<INFILE ) { my @array = split(/\t/, $_); ...manipulate them a little, and print them back out like so: print ...
    Charlie FarinellaCharlie Farinella
    Oct 9, 2008 at 8:54 pm
    Oct 13, 2008 at 8:20 pm
  • Hi All, I like to do some certification in perl,but i could not get any information about the available certifications in perl . Could anyone help me in this? Thanks, Praveena
    Praveena VittalPraveena Vittal
    Oct 6, 2008 at 12:22 pm
    Oct 9, 2008 at 2:18 pm
  • Hi All! I'm pretty new to working with sockets in perl, looked around for days for a proper solution for my IRC/DCC problem but couldn't find one. The connection to the server uses a socket with a ...
    Kammen van, Marco, Springer SBM NLKammen van, Marco, Springer SBM NL
    Oct 21, 2008 at 10:54 am
    Nov 3, 2008 at 7:04 am
  • Hi all, i need help on something i'm working on.............I have 127 systems connected in the network, i want to write a script which will run on a management server, i shud be able to connect to ...
    Monnappa appaiahMonnappa appaiah
    Oct 23, 2008 at 1:37 pm
    Oct 29, 2008 at 3:08 am
  • Hello, I would like to know how to test for the last element of a list during a foreach loop, e.g. foreach $element (@List) { if (this is the last element) { do something } } What would I use for the ...
    Six24hourdaysSix24hourdays
    Oct 21, 2008 at 1:39 pm
    Oct 22, 2008 at 9:01 am
  • Hi All, I have a string and I need to parse that string to check whether it is in required format or not. I have a Perl script which ask for user input. I have mentioned in the Perl script that input ...
    Irfan SayedIrfan Sayed
    Oct 13, 2008 at 12:50 pm
    Oct 14, 2008 at 7:48 pm
  • Hi All, i found this as a Bug in Perl consider.... for($i=0;$i<0.4;$i=$i+0.1) { print "$i\n"; } here you wiil get output as expected... 0 to 0.3 it work fine till test is $i<0.7...UPTO HERE ...
    AnilfundeAnilfunde
    Oct 7, 2008 at 12:46 pm
    Oct 10, 2008 at 1:51 pm
  • Hi ARGV0 will = AB7Z001 ARGV1 will = AB7Z002 ARGV2 will = 01/01/1900 I would like to read a file, locate AB7Z001 (but not AB7Z0011, so a space at position 8 in string ) Upon location of value in ...
    BrianBrian
    Oct 22, 2008 at 1:39 pm
    Oct 24, 2008 at 8:01 am
  • Hi all, Kindly go through the below codes: use warnings; use strict; my $string = "test"; if ($string eq "test") { print "correct"; } Output: Correct Now when I write the same if condition in program ...
    Sanket vaidyaSanket vaidya
    Oct 16, 2008 at 8:56 am
    Oct 17, 2008 at 2:59 am
  • Hi, I have 2 permute and Text-balanced modules installed. They are in the path: "/home/<user /local/perl/" I tried an example for permute by including the module path as: ...
    Sharan BasappaSharan Basappa
    Oct 10, 2008 at 2:49 pm
    Oct 14, 2008 at 3:01 pm
  • Hi, Is there a way I can marge FILE2 into FILE1 or reverse together without creating a new merge file. I am not sure there are a better way to do it. If you give me some hint or help, i would ...
    Slow_leanerSlow_leaner
    Oct 31, 2008 at 5:27 pm
    Nov 5, 2008 at 9:19 pm
  • I have a package named "Foo" in which I want to define some package- level constants (such as $VAR="soemval"). I want those constants available to users of package Foo, so the following code would ...
    MrstevegrossMrstevegross
    Oct 30, 2008 at 6:42 pm
    Nov 1, 2008 at 2:33 pm
  • Hi, I want to have a program to autofill those yahoo signup forms such as this == https://edit.yahoo.com/registration?.v=&.intl=sg&new=1&.src=ym&.partner=&.p=&promo=&.last=&.done=http://sg.yahoo.com/ ...
    ItshardtogetoneItshardtogetone
    Oct 5, 2008 at 6:13 am
    Oct 19, 2008 at 3:47 pm
  • Hi, I'm stuck with what will probably turn out to be a simple solution, I've been scouring google for ages, and can't find anything close to what I'm looking for. Given that $fred = 10 $barney = ...
    Brian54321ukBrian54321uk
    Oct 20, 2008 at 12:22 pm
    Oct 20, 2008 at 7:01 pm
  • Hi there, I have created a common perl file that other perl programs can refer to so I only have one place to set the values for many different perl programs. all perl programs will call this common ...
    NoahNoah
    Oct 8, 2008 at 10:44 am
    Oct 9, 2008 at 12:43 pm
  • Hi all, I like to specify a raw string, like for example $w: my $who = "my friend"; my $w = q(This is \n $who.); Now I want to evaluate that raw string so that the result is a string: This is my ...
    Manfred LotzManfred Lotz
    Oct 4, 2008 at 7:35 pm
    Oct 5, 2008 at 6:35 pm
  • Hi, I was just trying to match a string and save it in a single statement as follows: $extracted = "cp xyz"; $state_var = $extracted =~ m/cp\s+(.*)/; print "$state_var $1 \n"; The output is: 1 xyz So ...
    Sharan BasappaSharan Basappa
    Oct 24, 2008 at 3:00 pm
    Oct 28, 2008 at 4:09 am
  • DeviloperDeviloper
    Oct 10, 2008 at 10:30 am
    Oct 10, 2008 at 7:17 pm
  • I've got a script I'm using to search through a list of Wikipedia article titles to find ones that match certain patterns. As-written, if you run it and supply '.*target.*' on standard input, it will ...
    Mark WagnerMark Wagner
    Oct 31, 2008 at 7:54 pm
    Nov 1, 2008 at 1:55 pm
  • If I populate @array Then @array=(); Is the memory that was used for that array now freed? Similarly If I populate the anonymous array @{$arrayREFS[$index]} Then @{$arrayREFS[$index]}=(); Is the ...
    kenTkkenTk
    Oct 21, 2008 at 6:30 am
    Oct 23, 2008 at 6:56 pm
  • while trying to study the article on perlmonks.org, http://perlmonks.org/?node_id=490846 regarding XML parsing, I need bit of clarfication. how do I parse out <image ...
    Richard LeeRichard Lee
    Oct 22, 2008 at 4:59 am
    Oct 22, 2008 at 3:36 pm
  • below sub works fine except the line where key is default. Instead of printing out PCMU only once, it's printing it out 40 times randomly.. Trying to figure out what I did wrong. Please leave me a ...
    Richard LeeRichard Lee
    Oct 14, 2008 at 6:15 am
    Oct 14, 2008 at 4:04 pm
  • Here's my problem (well, a shortened example=) #hashes.pl use strict; use warnings; use Data::Dumper; my %a=(a= 1, b= 2, c= 3); print Dumper \%a; print "\n".("-" x 10)."\n"; my $c=$a{d}- [0]; print ...
    Paolo GianrossiPaolo Gianrossi
    Oct 3, 2008 at 4:21 pm
    Oct 3, 2008 at 7:23 pm
  • Hi, I recently upgraded a system (as far as perl is concerned from 5.8.7 to 5.10.0). Afterwards I ran into a mysterious problem. I could eventually find a workaround, but still don't really ...
    Peter DaumPeter Daum
    Oct 1, 2008 at 9:27 am
    Oct 3, 2008 at 4:41 pm
  • Does anyone know if there's a way to use an HTML stripper in Perl to scrub the HTML from all files in a specified directory? If so, would you point me in the correct direction. Thanks,
    BdyBdy
    Oct 29, 2008 at 3:14 pm
    Nov 12, 2008 at 8:56 pm
  • I ran find2perl to give me some output that I included below (in Sub_directory). If I have no network shares mounted it runs fine. But I have some shares mounted (sftp, or smb, etc.) via Nautilus, ...
    ProtoplasmProtoplasm
    Oct 22, 2008 at 11:32 pm
    Oct 28, 2008 at 12:40 am
  • Hello I have some perl code that was working and for the life of me I cannot determine why it is is failing now. All I am trying to do is to create and open a new file using a date time stamp in the ...
    AndrewMcHorneyAndrewMcHorney
    Oct 26, 2008 at 9:44 pm
    Oct 27, 2008 at 2:26 am
  • I am using a module having documentation saying document() is a method. However, I see it used as $o- document; Can you reference a method in this way? (I takes no args). I always thought $o- ...
    Oldyork90Oldyork90
    Oct 7, 2008 at 1:13 pm
    Oct 22, 2008 at 12:24 pm
  • I am a student and enrolled Unix programing this semester. There are two questions relating to perl I can not work out in the last exam ( Actually I have write out my code, however the exam system ...
    BirdinforestBirdinforest
    Oct 21, 2008 at 12:49 pm
    Oct 22, 2008 at 1:38 am
  • I need to translate an IP addr with its mask from this form: 192.168.1.30/255.255.255.0 to this one: 192.168.1.30/24 which module/method is right to use? Thanks.
    Sandy loneSandy lone
    Oct 16, 2008 at 9:44 am
    Oct 17, 2008 at 8:54 pm
  • Hi, I am trying to process a code for some processing. The code looks like keywordx ... keywordy identifier_a some text endkeywordy keywordz identifier_a some text endkeywordz endkeywordx From this, ...
    Sharan BasappaSharan Basappa
    Oct 10, 2008 at 3:56 pm
    Oct 14, 2008 at 5:51 pm
  • My simple program works well in the terminal window: #!/usr/bin/perl -w use strict; my $answer; for ($a = 1; $a <= 100; $a++) { for ($b = 1; $b <= 100; $b++) { $answer = ($a-$b); print "$a - ...
    DavidDavid
    Oct 9, 2008 at 11:31 pm
    Oct 10, 2008 at 4:05 am
  • Hi, I have large file in following format: ID | Time | IP | Code Now I want to write script that will cluster data by IP addr. and count total number of IDs for corresponding IP. I am new to perl.
    Friend 05Friend 05
    Oct 6, 2008 at 2:12 pm
    Oct 7, 2008 at 9:33 pm
  • Hi All! I making regular expression for mathching authors in some text (English, French or German). Which character class lower-case letters containing latin letters like "ø"? For example ...
    Vyacheslav KaramovVyacheslav Karamov
    Oct 2, 2008 at 2:05 pm
    Oct 3, 2008 at 6:27 pm
  • Hi, I have a list of element in array that I would like to match the pattern in logs file. I have hard time take element from array and matching it. More then weeks now and don't know where to find ...
    Slow_leanerSlow_leaner
    Oct 28, 2008 at 5:58 pm
    Oct 30, 2008 at 12:00 pm
  • Hiya I have three sentences. This is a nice hotel. The view & food is good. We are at the Victoria & Alfred Hotel. I need a perl regex / code to not print out sentence 2 (basically fail). This is ...
    Brent ClarkBrent Clark
    Oct 30, 2008 at 9:57 am
    Oct 30, 2008 at 10:22 am
  • Hello all, Any time I run a unix command where I initiate a variable use the variable as an arg in the unix command pipe it to another unix command, I get an error. This is the error I get: ...
    Ariel CasasAriel Casas
    Oct 20, 2008 at 5:06 pm
    Oct 26, 2008 at 3:14 am
  • hi all, i am using expect module to connect to a remote server. i am getting the following error. Cannot sync with child: Interrupted system call at /perl_path/lib/Expect.pm line 134, somebody please ...
    Sandeep KumarSandeep Kumar
    Oct 21, 2008 at 1:33 pm
    Oct 22, 2008 at 8:17 pm
  • Hi all, Serious noob here (one week into llama 5th ed.). I'm trying to write a script to pull a specific file from a directory and search that file for specific phrases. I am having a problem ...
    Mostro713Mostro713
    Oct 21, 2008 at 8:00 pm
    Oct 22, 2008 at 7:44 pm
  • Hi, I need to create permutations of a given set of values. The set is itself present in an array. From this I am trying to create another array that has permutations of this set. I am able to create ...
    Sharan BasappaSharan Basappa
    Oct 16, 2008 at 4:04 pm
    Oct 22, 2008 at 3:19 pm
  • Dear all Please see the below code, i am in course of studying Configuration in perl, when i came across writing a small code, a error message was: Can't locate Config/IniFiles.pm in @INC (@INC ...
    Mani kandanMani kandan
    Oct 19, 2008 at 7:29 am
    Oct 19, 2008 at 11:13 am
  • Hello, What is the best (shortest) way to define a hash where different keys have same values: %my_hash = { 1 = 'something', 2 = 'something', 3 = 'something else'}; Is there a way to write something ...
    Marko KrsticMarko Krstic
    Oct 15, 2008 at 8:04 am
    Oct 17, 2008 at 9:04 pm
  • DeviloperDeviloper
    Oct 14, 2008 at 11:10 am
    Oct 17, 2008 at 1:37 am
  • Hello, I am going to study how to working on daemon / socket, and I am working on a Win32 environment. As beginning, I only want to run a daemon listening on a port, and when I send http request to ...
    Panda-XPanda-X
    Oct 14, 2008 at 6:44 am
    Oct 15, 2008 at 8:12 am
  • DeviloperDeviloper
    Oct 13, 2008 at 8:30 am
    Oct 13, 2008 at 3:53 pm
Group Navigation
period‹ prev | Oct 2008 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions154
posts770
users153
websiteperl.org

153 users for October 2008

Rob Dixon: 71 posts Mr. Shawn H. Corey: 56 posts John W. Krahn: 55 posts Jeff Pang: 42 posts Brian54321uk: 36 posts Chas. Owens: 36 posts Dr.Ruud: 35 posts Jenda Krynicky: 19 posts Vyacheslav Karamov: 14 posts Richard Lee: 13 posts Sharanbr: 13 posts Stewart Anderson: 13 posts Raymond Wan: 12 posts Irfan Sayed: 11 posts Deviloper: 11 posts Rob Coops: 11 posts Sandy lone: 11 posts Randal L. Schwartz: 10 posts Peter Scott: 9 posts AndrewMcHorney: 8 posts
show more
Archives