Search Discussions

142 discussions - 662 posts

  • Hi all, I am looking for a "fetch" function to fetch "n" number of records at a time in Perl DBI ! "fetchrow_hashref" fetches one row at a time whereas "fetchall_hashref" fetches all the rows at a ...
    Amit SaxenaAmit Saxena
    Sep 11, 2008 at 11:53 am
    Sep 16, 2008 at 6:08 pm
  • I found a Perl script that parses Cisco ACL logging format and I would like to modify it to parse the IPS format that Cisco uses. I have made changes to the expression that picks up the Rule and the ...
    Stephen ReeseStephen Reese
    Sep 20, 2008 at 12:25 pm
    Sep 24, 2008 at 10:29 pm
  • s!(<|</)([^\!][A-Z0-9 ]+ )!$1\L$2\E!g; or s/(<|<\/)([^!][A-Z0-9 ]+ )/$1\L$2\E/g; The RE above captures and replaces all HTML tags with lowercase as desired except for any tag that has only one letter ...
    Jack GatesJack Gates
    Sep 26, 2008 at 4:48 pm
    Nov 11, 2008 at 4:52 am
  • Hi All! I need to pass object to a function. How can I do it? How to make this code work? use Tree::Simple; sub SomeFunc { my $node = @_; foreach my $child ($node- getAllChildren() ) { ... } } my ...
    Vyacheslav KaramovVyacheslav Karamov
    Sep 30, 2008 at 2:30 pm
    Oct 1, 2008 at 6:07 pm
  • HI again I would like to test a folder full of files, and if a file contains abc123blue or xyz357green then that file is to be deleted. What would be the best way of achieving this please? If ...
    Sep 5, 2008 at 6:20 pm
    Sep 7, 2008 at 2:16 pm
  • Hello, Experts! I am into perl since a couple of weeks, so please excuse any ingenuity ;) To the problem: I have a regex in a variable, and would like to match it. I clearly understand that I can do ...
    Paolo GianrossiPaolo Gianrossi
    Sep 1, 2008 at 8:13 am
    Sep 3, 2008 at 12:26 pm
  • Hello. I am looking for a few Perl books that are good for beginners who have very little or no programming skills, but use computers for software quality assurance/SQA testings. The books need to be ...
    Phillip PiPhillip Pi
    Sep 18, 2008 at 11:14 pm
    Oct 4, 2008 at 2:42 am
  • I'm looking to increase the count $x every time a match is made for the regex. Though I'm not having any luck nor am I receiving any errors. I'm missing something, it seems $x++ would increase $x ...
    Stephen ReeseStephen Reese
    Sep 24, 2008 at 5:10 am
    Sep 26, 2008 at 4:37 am
  • I'd like to switch the " and ' characters in a block of text so that all " characters become ' and all ' characters become ". The closest thing I can come up with is the following, but of course it ...
    Sep 22, 2008 at 5:20 pm
    Sep 23, 2008 at 7:37 am
  • Hi there, What is the easiest way to store the first key of a hash to a scalar variable? Cheers, Noah
    Sep 10, 2008 at 8:09 pm
    Sep 11, 2008 at 2:15 am
  • here is my problem: i have to check the entries of a column and write them out to a file if they happen to be DNA sequences ie they are exclusively composed of the letters A, T, G, C- no spaces or ...
    Sep 23, 2008 at 1:21 am
    Sep 29, 2008 at 2:37 pm
  • I have a log file- How can I get the last entry of this file?(highlighted in blue) Thanks and Regards, Manasi Bopardikar|s/w Engineer|Persistent SystemsLtd (+91)(020)(30234497)|9371059891 ...
    Manasi BopardikarManasi Bopardikar
    Sep 17, 2008 at 10:10 am
    Sep 23, 2008 at 8:09 am
  • Hi All! I'm parsing XML using XML::Parser::Expat ... $self- {parser}- setHandlers( Start= \&OnStartElement, End= \&OnEndElement, Char= \&OnCharacters); ... sub OnStartElement { my $parser = shift; my ...
    Vyacheslav KaramovVyacheslav Karamov
    Sep 26, 2008 at 3:02 pm
    Oct 2, 2008 at 11:04 pm
  • Hi, I installed Net::SCP as I was reminded of the module in a recent post. I need to copy files from one server to another. I generated ssh-keys for a user and I can use scp test.txt ...
    Sep 19, 2008 at 4:53 pm
    Sep 22, 2008 at 2:40 pm
  • You could argue that in absence of any other rules, RFC 1855 applies: "If you are sending a reply to a message or a posting be sure you summarize the original at the top of the message, or include ...
    Thomas BätzlerThomas Bätzler
    Sep 22, 2008 at 12:04 pm
    Sep 22, 2008 at 1:24 pm
  • Hello All, I have a file with the info in the following format; ================Start of File===================== Server Name: ABCDEF Manufacturer: Dell Model: Some Model Number Of Processors ...
    Aali NaserAali Naser
    Sep 17, 2008 at 7:21 pm
    Sep 18, 2008 at 2:57 pm
  • Hello, I may be being a bit dim, but I wrote this: #!/usr/bin/perl -w use IO::Socket::INET; print "ISONAS Logger (perl) v1\n"; my $socket = IO::Socket::INET- new( PeerAddr = "", PeerPort = ...
    Andy DixonAndy Dixon
    Sep 24, 2008 at 11:26 am
    Sep 25, 2008 at 6:40 am
  • I have a problem I am trying to take lines in a text file that look like this. although there are 500 more or so (and they have more realistic names) 25727 dude, some M MEX.AMER. DORM1 25797 dude, ...
    Sep 4, 2008 at 9:04 pm
    Sep 5, 2008 at 9:48 pm
  • Hi All! I need to parse XML with XML::Parser::Expat and make XML tree with Tree::Simple. But I need to store tag value and its attributes. But Tree::Simple- setNodeValue() accepts single scalar ...
    Vyacheslav KaramovVyacheslav Karamov
    Sep 25, 2008 at 9:03 am
    Sep 25, 2008 at 2:00 pm
  • I need to open a program which I decided to use system but how do I stay in there and use variables to populate.
    Sep 15, 2008 at 2:17 pm
    Sep 17, 2008 at 12:51 am
  • Hi all, I have a problem.. I need to run / execute multiple processes SIMULTANEOUSLY ( at the same time) . May it be system processes or any other process For eg:- running notepad.exe , taskmgr.exe , ...
    sumeet .. Light my way..!!sumeet .. Light my way..!!
    Sep 1, 2008 at 11:27 am
    Sep 16, 2008 at 12:13 pm
  • Hi I would like to replace a string of characters in a file to the name of the directory it is in. Thefore, in the example below, I would like to know how to replace "?" open( F, $ARGV[0] ); while( ...
    Sep 3, 2008 at 1:56 pm
    Sep 3, 2008 at 5:37 pm
  • =pod Hey fellow GoogleGroup Brothers & Sisters, I am hoping to ask you all a quick Perl intermediate logic question… I have called an obj command which returns what I think is a multi- dimensional ...
    Sep 26, 2008 at 8:15 pm
    Oct 3, 2008 at 6:17 pm
  • Hi. I am trying to filter strings which do not have :// in them, I am able to find strings with :// but I want to do the exact opposite. regex to match : /(.*:\/\/.*)/i I tried /(.*(?!:\/\/).*)/i but ...
    Sep 28, 2008 at 7:19 pm
    Oct 1, 2008 at 2:39 pm
  • one more question on reference, if say you have sub as below my @arrayref; sub do_something { my $something = @_; open FILE, "$something", or die; while (<FILE ) { my @array = map (split ...
    Richard LeeRichard Lee
    Sep 29, 2008 at 9:37 pm
    Oct 1, 2008 at 4:50 am
  • Hi, I have a code snippet as follows: keyword id1 = a x b x c; keyword id2 = c x d x e; I would like to extract strings "a x b x c" and "c x d x e". I know I can loop through the code and extract the ...
    Sharan BasappaSharan Basappa
    Sep 22, 2008 at 3:07 pm
    Sep 23, 2008 at 3:37 pm
  • Hi all, In the following code, the value of "$string" in last two cases is not printed correctly. Please let me know what i am missing over here. *# cat l3.pl* #! /usr/bin/perl $ONE_BYTE_RANGE = 256; ...
    Amit SaxenaAmit Saxena
    Sep 16, 2008 at 10:39 am
    Sep 16, 2008 at 5:03 pm
  • Hi All, i want get the time specified in last line of the file. For eg: $tail -2 test.log 2008 aug 25 14:48:42.800 Sending ping message; 2008 aug 25 14:48:43.390 Sending ping message; The file size ...
    Sep 9, 2008 at 7:23 pm
    Sep 10, 2008 at 12:01 pm
  • Hello everyone! I'm learning perl and I need some help. I want to write a script that execute commands into a linux terminal and catch the results but I don't know how to do this. Example: I want a ...
    Daniel NascimentoDaniel Nascimento
    Sep 29, 2008 at 10:26 pm
    Oct 3, 2008 at 6:50 pm
  • I just start to learn perl on GD graph. My OS is Linux. I got a example, but how can I display the graph on the screen ? use Gtk2 or something else? Hereis is the code: #!/usr/bin/perl -w use GD; my ...
    Funny PerlFunny Perl
    Sep 29, 2008 at 8:05 am
    Sep 30, 2008 at 2:12 pm
  • I am working on modifying a script that previously parsed Cisco ACL's and changing it to parse IPS information. Here is an example of the two log formats. Sep 19 15:44:29 59800: ...
    Stephen ReeseStephen Reese
    Sep 20, 2008 at 5:08 am
    Sep 22, 2008 at 10:48 am
  • Hi, It has been a long time since I used Perl and I am having to learn it from scratch. Lots of new modules have been added so its an uphill struggle, so maybe someone can help me. I'm trying to ...
    Paul Lee 1971Paul Lee 1971
    Sep 15, 2008 at 3:37 pm
    Sep 16, 2008 at 1:39 pm
  • Hello All, I have written a perl script that process a HTML file and modifies the data in HTML file based on the arguments which are sent. I have used a foreach loop to traverse through the contents ...
    Sep 14, 2008 at 5:01 pm
    Sep 15, 2008 at 5:55 pm
  • Hi I have a database with my servers details in .. I would like to write a scripts to get the servers log on info ssh to the box and get basic info using the following hostname cat /etc/issue cat ...
    Gregory MachinGregory Machin
    Sep 9, 2008 at 7:37 am
    Sep 12, 2008 at 1:27 pm
  • I am having a problem in capturing the output and exit value from a system command that prompts the user for input. The following shows a simplification of the problem. Im trying to get it so that ...
    Sep 9, 2008 at 9:05 pm
    Sep 10, 2008 at 7:17 pm
  • Hi all, What's the difference between "perl -w" and "use warnings" in perl ? If there is no difference, then the "use warnings" can be removed from the perl programs and replace them with "perl ...
    Amit SaxenaAmit Saxena
    Sep 1, 2008 at 12:56 pm
    Sep 2, 2008 at 6:24 am
  • I have a huge file, there are 47,286,116 lines. I am search a line and repalce this line with another string. I know this line is between 20,000,000th to 30,000,000th lines. Which way is more fast ...
    Org chenOrg chen
    Sep 29, 2008 at 4:34 am
    Oct 6, 2008 at 11:37 am
  • Can someone be of help; I have the code below, what i wanted this code to do is to dynamically create fields to select and again to dynamically subtitute the value of the given fields. my sms content ...
    Goke ArunaGoke Aruna
    Sep 28, 2008 at 4:31 pm
    Oct 2, 2008 at 8:24 am
  • Hi all I'm just wondering whats the best way to send an SMS thought perl ? Has any one experience of doing such a task ? I'm looking at CPAN and finding: SMS-Send Net-SMS any recommendations ? also ...
    Pat RicePat Rice
    Sep 22, 2008 at 3:01 pm
    Sep 30, 2008 at 1:51 pm
  • Hi, I try to open several files, if one of them failed, my program will die and then send the died information to a file. eg. open(AA, "a.txt") or die "can't open file a.txt\n"; But I want to this ...
    Aa aaAa aa
    Sep 26, 2008 at 4:55 am
    Sep 26, 2008 at 12:38 pm
  • Hi! I've been using Perl for awhile but I still have some doubts :) hopefully you will help me to clarify some concepts :) In particular, I have the following situation: I have an external command ...
    Jose PerezJose Perez
    Sep 23, 2008 at 5:57 pm
    Sep 23, 2008 at 7:24 pm
  • Hello, I am trying to iterate over all the lines of a file, each of which starts with a line number, and isolate the line number and the corresponding string into one variable each, then have them ...
    Clemens BiegClemens Bieg
    Sep 23, 2008 at 6:06 pm
    Sep 23, 2008 at 7:21 pm
  • Hi, How do I randomly produce a date between 1st Jan 1960 to 31th December 1985. It must be able to show the day month year. I only know how to produce a random number between 1960 to 1985 using rand ...
    Sep 20, 2008 at 9:37 am
    Sep 21, 2008 at 11:05 am
  • Hello I am working on a perl script which is strictly loops for performance testing. For some reason the index for the quarterback index is not incrementing. Also sometimes I am getting an error ...
    Sep 20, 2008 at 8:08 pm
    Sep 20, 2008 at 8:37 pm
  • Hello, I use CGI::Session in some of my CGI scripts. How to delete user's session in web server automatically when he close the client browser? Thanks.
    Sep 18, 2008 at 1:46 am
    Sep 20, 2008 at 5:43 pm
  • Hello, Is there a way to append a text file to an existing text file. For example, File A: Jan Feb Mar April ... File B: 10 30 40 20 ... After appending job, the File A would be like below. Jan Feb ...
    Sep 18, 2008 at 5:16 pm
    Sep 19, 2008 at 8:11 pm
  • Hello I am looking for sample code where a user would enter a password. The key here is to either replace the characters entered with blanks or something like "*" for each character that is entered. ...
    Sep 17, 2008 at 8:04 pm
    Sep 18, 2008 at 11:54 am
  • Can someone point me to an example of a little program that emits non-ascii Unicode characters (Russian or Chinese perhaps)? The unicode Russian/Cyrillic alphabet starts at 0x410. Is this possible to ...
    Sep 14, 2008 at 2:24 am
    Sep 15, 2008 at 8:00 am
  • I'd like to apply a series of inline edits to a file in Perl. With sed, I could use "sed -f commandfile inputfile" or in awk, "awk - f commandfile inputfile", however, I could not find an equivalent ...
    Sep 2, 2008 at 2:06 pm
    Sep 12, 2008 at 10:29 am
  • Hi i have som text with " and space and then a numbers eg. " 234234 I tested to write $line =~ s/\" [0-9]/[0-9]/g; I like it to change " 234 to "234 But it made "[0-9] Anyone how should i have write ...
    Sep 9, 2008 at 7:34 pm
    Sep 10, 2008 at 7:12 am
Group Navigation
period‹ prev | Sep 2008 | next ›
Group Overview
groupbeginners @

153 users for September 2008

John W. Krahn: 74 posts Mr. Shawn H. Corey: 72 posts Rob Dixon: 35 posts Dr.Ruud: 20 posts Vyacheslav Karamov: 19 posts Jack Gates: 18 posts Stephen Reese: 16 posts Amit Saxena: 15 posts Raymond Wan: 14 posts Jeff Pang: 11 posts Paolo Gianrossi: 11 posts Stewart Anderson: 11 posts Brian54321uk: 9 posts Deviloper: 8 posts Jeff Pang: 8 posts Jeff Pang: 8 posts Sandy lone: 8 posts Thomas Bätzler: 8 posts Adams Paul: 7 posts Jeff Pang: 7 posts
show more