FAQ

Search Discussions

85 discussions - 375 posts

  • Hi, How do I split a word into n subsets? my $word = "thequickbrown" If I want three subsets I should be able to create: the heq equ .... upto .... own Using split function with limit of 3 gives me: ...
    Michael AlipioMichael Alipio
    Oct 25, 2009 at 9:43 am
    Oct 27, 2009 at 7:18 am
  • Hello Folks, This is my first post here. I am trying to emulate Linux 'sort' command through Perl. I got following code through Internet to sort the text file: # cat sort.pl my $column_number = 2; # ...
    Parag KalraParag Kalra
    Oct 30, 2009 at 7:38 pm
    Oct 30, 2009 at 9:20 pm
  • Hi, I'm trying to write a word list generator which can generate all possible combinations of n characters, within n set of characters. So far, this is what I have come up. The only input is the ...
    Michael AlipioMichael Alipio
    Oct 25, 2009 at 8:55 am
    Oct 27, 2009 at 12:34 am
  • This is an minor topic. I feel the Camel logo to represent Perl to be strange, illogical and slightly ugly. I presume I do not get the humor. However I prefer a swiss army knife -liked tool or a red ...
    M. E8. H.M. E8. H.
    Oct 25, 2009 at 8:41 pm
    Nov 24, 2009 at 7:01 pm
  • I have a couple of questions. What is a good starter perl book to learn perl. Secondly, I am kinda having trouble assimilating all the perl information. I want to know ways that you all remember the ...
    SlickSlick
    Oct 4, 2009 at 10:03 pm
    Oct 10, 2009 at 7:45 am
  • Hello All, I am doing some file reading operation, and parsing the data(its a CSV file) with a hash reference and then intend to store it in a record. something like: loop: until file ends; $hashref- ...
    Soham DasSoham Das
    Oct 9, 2009 at 5:14 am
    Oct 9, 2009 at 12:09 pm
  • I'm not sure what these errors are telling me. The script is supposed to remove dups from .bash_history but not operate on the last 12 lines... just reprinting them. ./uniqbh.pl Copying ...
    Harry PutnamHarry Putnam
    Oct 18, 2009 at 7:11 am
    Oct 19, 2009 at 12:54 pm
  • I need to sort the keys in a hash. The keys are the question number and the values are the student's answer. A numeric sort with <= won't work since retaking a missed question (say, 2) produces the ...
    Rick TriplettRick Triplett
    Oct 13, 2009 at 4:09 pm
    Oct 18, 2009 at 3:39 pm
  • Hi all, Within a CGI environment, I'm trying to do a dispatch table test, but can't figure out how to call the coderef as a method. Here is the working code. I'll describe what doesn't work ...
    Steve BertrandSteve Bertrand
    Oct 31, 2009 at 12:28 am
    Nov 1, 2009 at 10:37 pm
  • Hi, all ; I want to print this sentence " The number in scientific notation is 1.255000e+02". So I write a perl script like this : #!/usr/bin/perl sprintf "The number in scientific notation is %e", ...
    MajianMajian
    Oct 21, 2009 at 12:52 pm
    Oct 25, 2009 at 11:44 am
  • With a linux background I'm used to being able to my the system logger right to a named pipe buy means of a `|' (pipe) symbol in syslog.conf *.* |/var/log/fifo But on Opensolaris the system logger is ...
    Harry PutnamHarry Putnam
    Oct 19, 2009 at 6:39 pm
    Oct 23, 2009 at 5:35 am
  • I wrote #!usr/bin/perl use Socket; use constant ADDR = 'www.google.com'; my $name=shift || ADDR; $packed=gethostbyname($name); $dotted-inet_ntoa($packed); print "DOtted Address is $packed"; but it is ...
    Anant GuptaAnant Gupta
    Oct 22, 2009 at 10:24 am
    Oct 22, 2009 at 4:06 pm
  • Sorry for all my questions. What do you guys do to practice? Do you practice one script over and over again? Do you read differnt scripts and figure out what is happening in each one? Do you think of ...
    SlickSlick
    Oct 7, 2009 at 12:11 am
    Oct 7, 2009 at 6:19 pm
  • Hi, how have I to write the printstatement to write a URL like http://www.example.com within the htmltag (<a href="http://www.example.com" Linktext</a ) into a textfile. Regards, Ruprecht Helms
    Ruprecht HelmsRuprecht Helms
    Oct 2, 2009 at 10:01 am
    Oct 5, 2009 at 8:24 pm
  • Hello, I need to generate tables in an excel file, corresponding to data in an XML file. Can anyone provide me with a simple example using XML::Twig or XML::DOM. I dont have access to CPAN archives, ...
    Anant GuptaAnant Gupta
    Oct 29, 2009 at 11:40 am
    Nov 2, 2009 at 1:35 pm
  • What follows is snippet out of a more complex script and reworked to simplify but still not seeing what causes the problem. I'm not sure if I've just stared at it too long or what. When I run it I ...
    Harry PutnamHarry Putnam
    Oct 28, 2009 at 4:37 pm
    Oct 29, 2009 at 2:54 pm
  • I want to change character code 160 to character code 32 throughout a bunch of text files. I'm using this right now s/(.)/ord($1) == '160' ? chr(32) : $1 /eg; and it works, but I don't like it much. ...
    Mike FlanniganMike Flannigan
    Oct 4, 2009 at 2:48 pm
    Oct 5, 2009 at 11:30 am
  • I am new at this perl thing. I just want to know tips and simple scripting. I also use strawberry perl for my program. Thanks Jason H. Owens
    SlickSlick
    Oct 4, 2009 at 6:02 pm
    Oct 4, 2009 at 10:20 pm
  • Hello,all: I had a question about the perl hash case insensitive . And I had this script : ========================================== #!/usr/bin/perl use warnings; %courses = ( "2CPR2B" = "C ...
    MajianMajian
    Oct 27, 2009 at 11:50 am
    Oct 27, 2009 at 1:47 pm
  • Is there a good way to do printf's with currency symbols? I've tried this: printf "Total: \$%10.2f\n", $total; But it puts the dollar sign way out front (ugly). I want it to look like: Total: $24.15 ...
    Bryan R HarrisBryan R Harris
    Oct 26, 2009 at 3:58 pm
    Oct 26, 2009 at 6:53 pm
  • Hi, I did the best book purchase in years: The Perl Cookbook. They have an example that seems to come right from Larry Wall himself. And I don't get it. I can use it but I don't understand why it ...
    Felix DornerFelix Dorner
    Oct 14, 2009 at 10:45 pm
    Oct 19, 2009 at 1:03 pm
  • I'm just looking for a push to get started... I do have some perl skills (pretty lowlevel to be sure) so can do basic formating with printf and such. But here... I expect my input to be pretty ...
    Harry PutnamHarry Putnam
    Oct 8, 2009 at 7:29 pm
    Oct 9, 2009 at 4:35 pm
  • Hello, I have problems in understanding $#{@$ use ????? 1- my $ref = $$temp_sth - fetchall_arrayref({}); for(my $i=0; $i <= $#{@$ref}; $i++) { push(@$temp_table,$ref- [$i]);} Can some one explain the ...
    Raheel HassanRaheel Hassan
    Oct 8, 2009 at 4:00 pm
    Oct 9, 2009 at 1:32 pm
  • Hi, All! I need to fix the width of some strings padding with leading spaces if necessary. I wanted to use printf but I don't know if you can put a variable in the format part the the printf ...
    Aimee CardenasAimee Cardenas
    Oct 27, 2009 at 9:53 pm
    Nov 2, 2009 at 5:01 pm
  • Looking over the perldoc File::Find output (perl 5.8.4) I see at finddepth it says: [...] in part "finddepth()" works just like "find()" except that is invokes the &wanted function for a directory ...
    Harry PutnamHarry Putnam
    Oct 28, 2009 at 7:55 pm
    Oct 28, 2009 at 10:58 pm
  • Hi all, I want to write a script to note specific IP addresses by appending the corresponding location informations. For detail, I describe my issue as follows: Suppose I have two files, the first ...
    Hongyi ZhaoHongyi Zhao
    Oct 19, 2009 at 2:41 pm
    Oct 22, 2009 at 5:17 pm
  • What is the proper way to escape or protect an `at sign' (@) inside a perl script where you might need it for sending email. I' monkeyed around several times and got it escaped... but inbetween I ...
    ReaderReader
    Oct 11, 2009 at 10:54 pm
    Oct 11, 2009 at 11:25 pm
  • I've never done much in the way of cgi scripts before, and am just getting started with it. I have encountered what seems to be a permissions problem, which I can't work out how to solve. I'm hoping ...
    Myf WhiteMyf White
    Oct 10, 2009 at 4:08 pm
    Oct 11, 2009 at 3:53 pm
  • Hello All, How to upload any file and get results for that uploaded file through a redirected URL, in perl/cgi I mean to ask, for example, I upload a file which contains protein sequences. Now I want ...
    JyotiJyoti
    Oct 7, 2009 at 2:04 am
    Oct 7, 2009 at 8:44 am
  • Hello, Can anyone help me to know how to make a script which can take any sequences by user as user input and give blast results as user output. This should work in a server. Any sequences can be any ...
    JyotiJyoti
    Oct 6, 2009 at 2:11 am
    Oct 6, 2009 at 12:34 pm
  • Hello, I want pro print to screen two strings. The problem ist that the length of the strings are variable, so I get a unreadable output. Even using \t does not help because the lenght can vary from ...
    Andreas MoroderAndreas Moroder
    Oct 5, 2009 at 9:21 am
    Oct 5, 2009 at 12:00 pm
  • Hi, I am using the IMAP::Client for automating the quota check for some of the users. My script was fairly straight, and I ran in to the below error, while running the script. The error returned by ...
    Shameem AhamedShameem Ahamed
    Oct 29, 2009 at 5:47 pm
    Oct 31, 2009 at 9:05 pm
  • Hello All, I just want help to open and read a file. I have to make a script so that it should open and read a file which is in fasta format. I have done something with subroutine but getting some ...
    JyotiJyoti
    Oct 29, 2009 at 7:23 pm
    Oct 30, 2009 at 1:15 am
  • Hi Please can you advise ? #!/usr/bin/perl use Mysql; $dbh = Mysql- connect("localhost","mailscanner","root","c0nc3pt") or die ("Error " . Mysql- errno . " - " . Mysql- errstr); $sql = "SELECT ...
    Gregory MachinGregory Machin
    Oct 6, 2009 at 6:44 pm
    Oct 29, 2009 at 1:54 pm
  • Hi, I am new to perl. From where I get the basic perl document -- Thanks, MAhesh
    Mahesh bhasmeMahesh bhasme
    Oct 26, 2009 at 7:52 am
    Oct 26, 2009 at 10:26 am
  • Dear list, I have the following bit of code: use strict; use warnings; use XML::Compile::WSDL11; use XML::Compile::SOAP11; use XML::Compile::Transport::SOAPHTTP; my $wsdl = XML::Compile::WSDL11- ...
    Rob CoopsRob Coops
    Oct 19, 2009 at 2:41 pm
    Oct 21, 2009 at 2:47 am
  • Hi, I will be very thankful if someone explains under given code. #----- CGI Module ------------------------------ use CGI; $q = CGI- new(); my ($myself) = split(/\?/,$q- self_url); #from where it ...
    Raheel HassanRaheel Hassan
    Oct 15, 2009 at 12:55 pm
    Oct 16, 2009 at 9:29 am
  • Hi, I have the following code: #!/usr/bin/perl use diagnostics; use strict; use warnings; my @Files = </flows/ft* ; foreach my $File (@Files) { print $File "\n"; } I have the following files in ...
    CknipeCknipe
    Oct 13, 2009 at 1:34 pm
    Oct 13, 2009 at 2:23 pm
  • Dear friends, I'm working in a genetic drift simulation and I want to add a second population to my script, any suggestions how to do that? j
    Jesus FernandezJesus Fernandez
    Oct 6, 2009 at 4:24 pm
    Oct 8, 2009 at 8:20 pm
  • I was just wondering once I get the hang of this, what things can I program? What is the pinicale of this? (I do understand that your mind is the limit, but you get my drift) I want to see something ...
    SlickSlick
    Oct 6, 2009 at 1:36 am
    Oct 6, 2009 at 10:35 pm
  • Just clarification. At this time I have not written any of my code (dont' know where to begin yet, however the website that I am looking at perl.begin.org seems to have diffrent methods for one item. ...
    SlickSlick
    Oct 5, 2009 at 8:49 pm
    Oct 6, 2009 at 1:59 am
  • I have about 60 MB of text data I want to include at the bottom of a script. 60 MB is too big for us, but compressed it would be probably only 3-6 MB which is much better. Is there any way to put ...
    Bryan HarrisBryan Harris
    Oct 3, 2009 at 1:51 pm
    Oct 5, 2009 at 3:24 pm
  • Looking at the kernel upgrade pages at http://www.gentoo.org/doc/en/kernel-upgrade.xml Its a bit confusing about the symlink creation. I've wondered about it a few times. At the top, you're told how ...
    Harry PutnamHarry Putnam
    Oct 31, 2009 at 4:05 pm
    Oct 31, 2009 at 4:51 pm
  • Trying to learn how to run Gnuplot via a Perl script I came across the following helpful example: #!/usr/bin/perl # Generate postscript and png plot with GNUplot from Perl # Author: Ioan Vancea # ...
    ANJAN PURKAYASTHAANJAN PURKAYASTHA
    Oct 28, 2009 at 10:00 pm
    Oct 28, 2009 at 10:14 pm
  • Hi, All! The default character to escape is backslash (\). Is there any way to redefine this and set it to any other character? For e.g. if I wanted to use '^' instead of '\'. *print "Hello World ...
    Vijay GururajaVijay Gururaja
    Oct 28, 2009 at 3:36 am
    Oct 28, 2009 at 5:59 am
  • I thought I had done this before, but I guess not. I build a formt line for printf like: q[%-3s%-4s%5s%6s]; But I want to insert a carriage return after say %-4s( I have a nubmer of fields and ...
    Wagner, David --- Senior Programmer Analyst --- CFSWagner, David --- Senior Programmer Analyst --- CFS
    Oct 22, 2009 at 3:38 pm
    Oct 26, 2009 at 7:49 am
  • With this little script, how would I manage to get the shorter timestamps zero padded using printf? I now how to get padded numbers but not when I'm pushing off the right margin too. cat script.pl ...
    Harry PutnamHarry Putnam
    Oct 24, 2009 at 9:03 pm
    Oct 25, 2009 at 1:20 am
  • Sorry about being tricky with what was an older thread. But I suspect that thread died... and no one noticed there was an unaswered question still there. Shawn C originally suggested I use ...
    Harry PutnamHarry Putnam
    Oct 24, 2009 at 8:57 pm
    Oct 25, 2009 at 12:49 am
  • I'm always wanting to know this. Thanks.
    NetfoxNetfox
    Oct 24, 2009 at 2:34 pm
    Oct 24, 2009 at 4:30 pm
  • Hi All. When using XML::Sample, I have a question, who can help me. First I have output.xml file: <?xml version="1.0"? <memo <applications <multimedia <application Mp3 converter</application ...
    GetgetGetget
    Oct 23, 2009 at 2:58 am
    Oct 23, 2009 at 8:09 pm
Group Navigation
period‹ prev | Oct 2009 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions85
posts375
users92
websiteperl.org

92 users for October 2009

Shawn H Corey: 36 posts Harry Putnam: 31 posts Jim Gibson: 26 posts John W. Krahn: 20 posts Shlomi Fish: 18 posts Slick: 11 posts Uri Guttman: 11 posts Philip Potter: 10 posts Jyoti: 8 posts Majian: 8 posts Steve Bertrand: 8 posts Dr.Ruud: 7 posts Thomas Bätzler: 7 posts Dave Tang: 6 posts David Christensen: 6 posts Soham Das: 6 posts Anant Gupta: 5 posts Jesus Fernandez: 5 posts Michael Alipio: 5 posts Raheel Hassan: 5 posts
show more
Archives