Search Discussions

164 discussions - 882 posts

  • Hi all! What regular expression do I need to convert Version: 1.2.3 to Version: 1.2.4 ? I.e. my pattern is Version: number.number.number and from that i need Version: number.number.number+1 After the ...
    Tatiana Lloret IglesiasTatiana Lloret Iglesias
    Oct 10, 2007 at 9:39 am
    Oct 16, 2007 at 10:54 pm
  • Hi all I wrote this code to read a file (in the same directory as the script) on Win XP *************************************************************************************************** ...
    Oct 22, 2007 at 7:28 pm
    Oct 28, 2007 at 3:13 pm
  • Hi I do not have any experience in programming at all. How do i start learning Perl language. Can some one here point me to the right direction to learn Perl Language Thanks in Advance Thanks and ...
    Kaushal ShriyanKaushal Shriyan
    Oct 7, 2007 at 12:27 pm
    Oct 11, 2007 at 2:37 pm
  • Hi All, I have one array say my @test=(1,2,3,4,5); if I print this array it will print like this print "@test\n"; and the output is 1 2 3 4 5 now my req. is that I want to store these array values in ...
    Sayed, Irfan (Irfan)Sayed, Irfan (Irfan)
    Oct 25, 2007 at 8:59 am
    Oct 24, 2008 at 10:31 pm
  • Hi, I am referring to http://www.gnulamp.com/perlscalars.html $a = $b; # Assign $b to $a Note that when Perl assigns a value with *$a = $b* it makes a copy of $b and then assigns that to $a. ...
    Kaushal ShriyanKaushal Shriyan
    Oct 10, 2007 at 12:10 pm
    Oct 11, 2007 at 3:52 pm
  • Hi, I have been trying to output XML that looks like this: <users <username id="10" dermot</username <username id="17" joe</username ... </users I have tried XML::Simple and XML::Generator but keep ...
    Oct 23, 2007 at 10:08 am
    Oct 25, 2007 at 10:24 pm
  • Hi Perl gurus, I've a question, and I was wondering if anyone could I've a perl program, and I'm trying to make it tidier. I have a huge file of a array of variables, for initialization, something ...
    Oct 22, 2007 at 9:52 am
    Oct 22, 2007 at 7:20 pm
  • Hi All, I have the following code as part of my program; print "---========= $file, $localFile\n"; $sftp - get( $file, $localFile ) || warn("errrrr0rrrrr _--- $!".$sftp- status."\n");^M Even though ...
    Kilaru rajeevKilaru rajeev
    Oct 31, 2007 at 1:37 pm
    Nov 1, 2007 at 3:34 pm
  • Hi, this question may be a bit off-topic but I do not know where to ask and you've all been so helpful with my questions about the program itself. To distribute the program I zip up the Perl source ...
    Oct 13, 2007 at 11:58 am
    Oct 18, 2007 at 4:18 am
  • I'm having problems trying to figure out 'bubble sort'. I'm working on assignment for a class and I have to do the following: Use the following code as a starting point for the next lab. ...
    Oct 10, 2007 at 1:07 am
    Oct 15, 2007 at 6:16 pm
  • Hi list, quite new to be here. I just wondering if Perl have some quite suitable module to do this. I have wrote a spam filter for my office, which use Net::POP3 to get mails and delete() mails that ...
    Oct 10, 2007 at 5:53 pm
    Oct 12, 2007 at 7:30 am
  • Hi, I'm trying to search a .txt file for matching ip addresses. I then want to delete those ip addresses. So far I have opened the file where the ip list is and stored it in an array. But How do I ...
    Phillip GonzalezPhillip Gonzalez
    Oct 17, 2007 at 5:07 pm
    Oct 19, 2007 at 12:37 am
  • I am assigned the output of a function to a variable. my$variable = (function); print "$variable\n"; The output is: text So I try this: chop my$variable = (function); print "$variable\n"; The output ...
    Oct 18, 2007 at 3:12 pm
    Oct 18, 2007 at 7:33 pm
  • Consider the example below... Config.pl ====== #!/usr/bin/perl -w my $value = "abc"; 1; Script.pl ====== require "Config.pl"; print $value; # How to do this, beside using .pm? Thanks.
    Oct 30, 2007 at 6:58 am
    Nov 1, 2007 at 3:55 am
  • Hello, Can I modify the contents of a file, without creating a new one? Now, the method that I modify the contents of a file is: open( READHANDLE , "sourceFile" ); open( WRITEHANDLE, " destiFile" ); ...
    PeiYu ZengPeiYu Zeng
    Oct 11, 2007 at 10:07 am
    Oct 20, 2007 at 11:13 am
  • Hi Guys... I am new to regular expression and perl. I want right and regular expression to catch Tony or Anthony so I did it something like this.. [tony?anthony]. It will be great if some could tell ...
    Oct 9, 2007 at 5:35 pm
    Oct 11, 2007 at 12:38 pm
  • Can you pass a subroutine as a string or pointer or store it inside a variable? example (probably doesn't work, but that's not the point): #!/usr/bin/perl sub func1 { my $i = shift; return $i =~ ...
    Oct 8, 2007 at 11:46 pm
    Oct 9, 2007 at 1:16 pm
  • I need to search large amounts of source code and grep is not doing the job. The problem is that I keep matching stuff in the comments of the C++/Java/Perl/Groovy/Javascript source code. Can someone ...
    Oct 3, 2007 at 8:02 pm
    Oct 8, 2007 at 7:32 pm
  • I've got a Perl program that is run once an hour as a cron job. Normally it finishes its task in about ten minutes, but occasionally it takes more than an hour to complete. When this happens, a ...
    Mark WagnerMark Wagner
    Oct 3, 2007 at 8:34 pm
    Oct 4, 2007 at 3:41 am
  • Hi Gurus, I have installed DBI and when I run the following perl script; ------SCRIPT use strict; use warnings; use DBI; my $DSN="DBI:mysql:database=faculte;host=localhost;port=3306"; my $DB_OBJ=DBI- ...
    Siva PrasadSiva Prasad
    Oct 31, 2007 at 2:24 pm
    Nov 14, 2007 at 12:34 am
  • Hi, I have a sample code ######################################################## #!/usr/bin/perl -w %states = ( "California","Sacramento", "Wisconsin","Madison", "New York", "Albany"); print ...
    Kaushal ShriyanKaushal Shriyan
    Oct 29, 2007 at 11:36 am
    Nov 2, 2007 at 10:19 pm
  • Hi Whats the exact purpose of use strict and use warnings Pragmas in the Perl Programming Language. I know use warnings turns on all useful warnings. Thanks and Regards Kaushal
    Kaushal ShriyanKaushal Shriyan
    Oct 30, 2007 at 2:39 pm
    Oct 31, 2007 at 11:58 pm
  • # --- <the program ---- my $fname = '/volumes/hd/home/kevin/file_test '; # note file ends with a space character print "Exists: <$fname \n" if (-e $fname); print "Is a file: <$fname \n" if (-f ...
    Oct 30, 2007 at 12:34 pm
    Oct 30, 2007 at 8:28 pm
  • I can do this: my $hashref = \%hash; But as near as I can tell, there is no way to do the reverse operation: making a "my %hash" that is an alias for a hash reference. It's possible with a package ...
    Aaron PrivenAaron Priven
    Oct 29, 2007 at 11:23 pm
    Oct 30, 2007 at 5:21 am
  • Hey all, I'm new with Perl and need help with this simple script. I'm still playing around with the script below to get a feel for Perl. My script below is incomplete and I'm doing an array within an ...
    Mike TranMike Tran
    Oct 29, 2007 at 2:43 pm
    Oct 29, 2007 at 10:45 pm
  • Hi All, I am executing my $usr=qx("who am i"); to get the user id on unix machine but it is giving error. sh: who am i: not found Please guide how to resolve this Thanks Irfan.
    Sayed, Irfan (Irfan)Sayed, Irfan (Irfan)
    Oct 26, 2007 at 11:13 am
    Oct 26, 2007 at 5:17 pm
  • I had the following code: open (FILEOUT, " $OutDir/info") or die $!; print FILEOUT "text = abc\n"; my $Tmp = ++$#files; print FILEOUT "moretext = $Tmp\n"; When I add the 3rd line, it initializes the ...
    Joseph L. CasaleJoseph L. Casale
    Oct 19, 2007 at 5:08 pm
    Oct 19, 2007 at 10:02 pm
  • Hi, I've been playing around with the following script as I would like to access data on a website that I need to log into first. As you can see I'm attempting to login into the main page and then ...
    Oct 11, 2007 at 12:37 pm
    Oct 12, 2007 at 3:57 pm
  • Hi, I am trying to insert a lots file paths into an SQLite table and am having trouble with filenames with apostrophes in. Below is the snippet I have been using. I have experimented with sprintf, qq ...
    Oct 29, 2007 at 3:16 pm
    Oct 29, 2007 at 9:06 pm
  • Hi All, I am executing following line in my perl script. chomp(@files = qx("cleartool desc -fmt "%[versions]p\n" activity:$ENV{"CLEARCASE_ACTIVITY"}")); But i am getting following error when i ...
    Sayed, Irfan (Irfan)Sayed, Irfan (Irfan)
    Oct 24, 2007 at 10:12 am
    Oct 28, 2007 at 3:35 am
  • Hi, I'm trying to create a dictionary file for my bruteforce program. I have a huge dictionary file and I want to trim it down according the requirements. The output should be a dictionary file that ...
    Michael AlipioMichael Alipio
    Oct 22, 2007 at 6:45 am
    Oct 27, 2007 at 6:49 am
  • Hi All, How to refer Perl module in Perl script which is not there in the @INC path. I don't have permission to add this module in the @INC path I need to use the SendMail.pm module , but that is not ...
    Sayed, Irfan (Irfan)Sayed, Irfan (Irfan)
    Oct 23, 2007 at 7:33 am
    Oct 23, 2007 at 10:57 am
  • # now connect and get a database handle my $dbh = DBI- connect($dsn, $user, $pass) or die "Cant connect to the DB: $DBI::errstr\n"; my $sql="SELECT value FROM res_prior"; my $sth = $dbh- ...
    Oct 14, 2007 at 10:48 am
    Oct 15, 2007 at 7:06 pm
  • Gurus; Sorry if this is not the proper forum. I've successfully written a Perl script to create a specific XML file. The problem comes when I attempt to run the script again and append XML entries ...
    Steven SimSteven Sim
    Oct 2, 2007 at 4:43 pm
    Oct 8, 2007 at 5:51 pm
  • HI I need to get the $to as 18-10-2007 But it throws as 18.can u give the suggestion to get the same format? Thanks........ #!/usr/perl/bin $from="15-10-2007"; $to=$from+"3"; print "$from,\n"; print ...
    Oct 22, 2007 at 2:29 pm
    Nov 12, 2007 at 7:12 pm
  • What I want are these array members from a string in a database. I'm almost there, just need to strip off the trailing pipe, but I am getting empty members too, so will have to test for that and dump ...
    Jo for Groups and ListsJo for Groups and Lists
    Oct 29, 2007 at 12:13 am
    Oct 29, 2007 at 6:43 am
  • Is there an easy way (without writing our own proc) to split a string based on number of occurances of a character ? for example: $my_string = "a;b;c;d;e;f;g;h" @regsplitarray = split (/;/, ...
    Mahurshi AkillaMahurshi Akilla
    Oct 25, 2007 at 10:21 pm
    Oct 27, 2007 at 12:45 am
  • Hi, I would like to replace a part of a really big (4GB) text file. And the contents that I want to change is really a small but continuous portion. Could some one please help me with the best way I ...
    Anand ShankarAnand Shankar
    Oct 22, 2007 at 8:53 am
    Oct 25, 2007 at 7:41 am
  • My whole project got too messy so I decided to use an existing XML file to load in all the needed input I would require. I have the following code but fail to access to data in $workspace. my ...
    Joseph L. CasaleJoseph L. Casale
    Oct 19, 2007 at 6:04 pm
    Oct 19, 2007 at 10:53 pm
  • Diky moc. From my naïve view, I don't think I would have attempted to include the alternation within the zero-width positive look-ahead assertion without seeing your example. As you correctly pointed ...
    Kevin VielKevin Viel
    Oct 16, 2007 at 2:57 pm
    Oct 19, 2007 at 12:32 am
  • 6


    <td align="right" class="textfield" colspan="2" <span class="sequence-star" <span class="titolo-hotel" 1 per 1 guest <br/ <br/ Start date Monday, March 12 2007 <br/ End date Tuesday, March 13 2007 ...
    Oct 17, 2007 at 12:55 pm
    Oct 18, 2007 at 1:44 pm
  • I've seen a programm written in Java that, on demand, opens an url in a firefox window, or, if that already exists, opens the url in a new tab. Can this also be done from perl, is there a module that ...
    Felix MaterFelix Mater
    Oct 14, 2007 at 3:41 pm
    Oct 16, 2007 at 7:20 am
  • Hi I would like to compare two files by comparing the files dates. If one file shows ls -la May 12 2003 filename and the other name shows the same date they are OK for me (I'm not interested in the ...
    Fredrik Y AnderssonFredrik Y Andersson
    Oct 5, 2007 at 8:27 am
    Oct 5, 2007 at 2:16 pm
  • Hi, I thought that the code snip below should work but I am not getting my text into the the file. The file is created but it's empty. Ideally I want to create the log file outside any sub routines ...
    Oct 2, 2007 at 2:12 pm
    Oct 2, 2007 at 3:39 pm
  • Hi All, I have one variable which stores the value as follows. "2007-09-07T12:50:26+05:30 aic_8.0_Integration ccvob01" Now my requirement is that I want to store aic_8.0_Integration part of the ...
    Sayed, Irfan (Irfan)Sayed, Irfan (Irfan)
    Oct 30, 2007 at 9:38 am
    Oct 30, 2007 at 8:22 pm
  • ^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$ Its look like an email address... is it..? it will be a great help if some one could give a breakdown on the this regex. thanks in advance...
    Oct 23, 2007 at 4:34 pm
    Oct 25, 2007 at 8:36 pm
  • ^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$
    Oct 23, 2007 at 10:32 pm
    Oct 24, 2007 at 1:26 pm
  • Hi All, I am getting the following error in the *make test* part while istalling the *Crypt::DSA* module. Please give me an advice how to procede. t/03-keygen.....*Math::BigInt: couldn't load ...
    Kilaru rajeevKilaru rajeev
    Oct 22, 2007 at 3:15 pm
    Oct 23, 2007 at 11:34 pm
  • Hi forum!!! I am assigning a variable dynamically and using it in a query to fetch values from my database. Here is the pseudo code... ########### my $string ; my $q1 = "select * from bugs where ...
    Oct 22, 2007 at 9:47 am
    Oct 22, 2007 at 5:35 pm
  • Can someone tell me how to allow user to keep enter data until the user hit certain key such as /q/i i was thinking something like this print "enter data\n"; $userInput = <STDIN ; ...
    Oct 21, 2007 at 4:41 am
    Oct 21, 2007 at 9:14 pm
Group Navigation
period‹ prev | Oct 2007 | next ›
Group Overview
groupbeginners @

170 users for October 2007

Jeff Pang: 57 posts Jenda Krynicky: 53 posts Tom Phoenix: 52 posts Matthew Whipple: 51 posts Chas. Owens: 47 posts Paul Lalli: 43 posts Dr.Ruud: 36 posts Yitzle: 33 posts John W. Krahn: 29 posts Rob Dixon: 28 posts Beginner: 17 posts Gunnar Hjalmarsson: 17 posts Sayed, Irfan (Irfan): 15 posts Joseph L. Casale: 14 posts Patrik Hasibuan: 12 posts Ron Bergin: 12 posts Siva Prasad: 11 posts Jeff Pang: 10 posts newBee: 10 posts Panda-X: 10 posts
show more