FAQ

Search Discussions

60 discussions - 322 posts

  • I have a data file with thousands of records. The problem is that the records in the data file span two lines for each record. I want to write a perl script that makes each record a single line. The ...
    Perl NoobPerl Noob
    Jan 19, 2010 at 5:09 am
    Jan 22, 2010 at 11:41 pm
  • Hi, I am trying to split the lines in a file into two halves (at the first space) each half going into an array. The code I have written is below. The print command is there to test that things ...
    Bob WilliamsBob Williams
    Jan 27, 2010 at 2:59 pm
    Feb 1, 2010 at 11:26 pm
  • Anybody here familiar with XML::Simple? I need to parse some XML that looks like this: <LabelResponse <Label <Image Number="1" base64datahere</Image <Image Number="2" base64datahere</Image <Image ...
    GrantGrant
    Jan 15, 2010 at 7:12 pm
    Jan 23, 2010 at 4:54 pm
  • Hello All, I am looking for a geeky way to wish someone on his Birthday with the help of Perl. Condition is - It should be one liner which I can directly execute from the command line. EG: perl -e ...
    Parag KalraParag Kalra
    Jan 17, 2010 at 6:04 pm
    Jan 20, 2010 at 5:12 am
  • Hello All, Major part of my Perl scripting goes in processing text files. And most of the times I need huge sized text files ( 3 MB +) to perform benchmarking tests. So I am planing to write a Perl ...
    Parag KalraParag Kalra
    Jan 2, 2010 at 5:56 pm
    Jan 4, 2010 at 6:58 pm
  • Can someone tell me why I need double quotes for this to work at the line with: print $first, $second, $third\n; #!/usr/bin/perl -w $first = 0xFF; $second = 0377; $third = 0b11111111; print $first, ...
    Grove, MichaelGrove, Michael
    Jan 6, 2010 at 5:28 pm
    Jan 7, 2010 at 5:13 am
  • I have a line in a script that lowercases each US state regardless of what case the letters are in: lc($state); I just saw an error like this: Safe: syntax error at (eval 1806) line 1, near "lc(or" ...
    GrantGrant
    Jan 27, 2010 at 7:53 pm
    Jan 28, 2010 at 6:33 pm
  • Hello All, This is surely a beginner's question and may even sound silly. :) How do you make a Perl script skip an input parameter if it is not present. Let me explain it through an example. EG: ...
    Parag KalraParag Kalra
    Jan 9, 2010 at 7:54 pm
    Jan 12, 2010 at 1:47 am
  • Hello all, I have a Perl Script that uses some of the Archive::Zip's methods for reading zip entries. Works fine on Linux, BUT on Solaris, this lib is not available in Solaris and I'm not allowed to ...
    BrunoBruno
    Jan 25, 2010 at 12:32 pm
    Jan 25, 2010 at 2:31 pm
  • Hello, Can the code (specially the regex) below be optimized to run faster? #!/usr/bin/perl for ($i=0; $i<1000; $i+=1) { open HD,"index.html" or die $!; while(<HD ) { print $1,"\n" if ...
    Jeff PengJeff Peng
    Jan 5, 2010 at 6:46 am
    Jan 10, 2010 at 7:00 am
  • Hello, I have found a nice utility http://www.novell.com/communities/node/389/adm+file+utilities+2+5 that has two problems: 1) It creates directories and files but it uses the \ backslash so it does ...
    Andreas MoroderAndreas Moroder
    Jan 5, 2010 at 3:59 pm
    Jan 7, 2010 at 12:14 pm
  • Hello, we need to extract data from uploaded Excel spreadsheets, XLS binary files. What is the best perl module to accomplish this with ?? Thanks, Mike(mickalo)Blezien ...
    Mike BlezienMike Blezien
    Jan 26, 2010 at 12:05 am
    Jan 26, 2010 at 5:55 am
  • Hi All, I'm new to perl and facing a problem........ I'm using a perl expect script to login to multiple machines (having same username and password) and execute the date command, initially i tested ...
    Perl_haxor 123Perl_haxor 123
    Jan 3, 2010 at 9:56 pm
    Jan 5, 2010 at 10:33 pm
  • HI , I have to get only error messages and warnings text form "/var/log/messages". I wrote below code for to get only "warnings, error and caution " messages from a file. but grep command wont work. ...
    V U Maheswara rao kV U Maheswara rao k
    Jan 27, 2010 at 12:37 pm
    Jan 27, 2010 at 5:36 pm
  • Hi All, How to install following module.or How to install following module in my system.I'm working in WINDOWS NT. Convert::Binary::C;Thanks and Regards,Shan -- DISCLAIMER: This message and any ...
    ShanShan
    Jan 18, 2010 at 11:39 am
    Jan 21, 2010 at 4:46 am
  • my $name = "/usr/local/bin/perl"; (my $basename = $name) =~ s#.*/##; # Oops! after substitution $basename is supposed to be perl but why it is not /local/bin/perl? will .*/ matches longest possible ...
    Jim GreenJim Green
    Jan 17, 2010 at 4:26 pm
    Jan 18, 2010 at 4:59 pm
  • Perl monks, I have a wee problem I can seem to solve. I don't want to get into should XML::Simple be used, it's not relevant to my question... I don't think. Below is some very simple XML and below ...
    Bruce FerrellBruce Ferrell
    Jan 29, 2010 at 9:34 pm
    Jan 30, 2010 at 4:18 pm
  • Hi, Is there a command that lists all installed perl modules in my .cpan directory? TIA, Anjan -- ============================= anjan purkayastha, phd * research associate * fas center for systems ...
    ANJAN PURKAYASTHAANJAN PURKAYASTHA
    Jan 29, 2010 at 3:56 pm
    Jan 29, 2010 at 10:14 pm
  • This is probably blindingly simple but I'm not understanding why @ARGV is not reduced to () (no args)? in this example I'm trying to understand what happens with ARGV in s getops loop with arguments ...
    Harry PutnamHarry Putnam
    Jan 23, 2010 at 7:09 pm
    Jan 24, 2010 at 2:11 pm
  • Hi All, can I convert perl file into binary file? So that my code will be secure/. -- -Mahesh
    V U Maheswara rao kV U Maheswara rao k
    Jan 21, 2010 at 5:21 am
    Jan 21, 2010 at 4:00 pm
  • Hi All, I am wondering how can i use the glob function to get only the first few files. I have files with digits as extensions. Like file.0, file.1 file.2......file.100,file.101 etc. I want to select ...
    Shameem AhamedShameem Ahamed
    Jan 20, 2010 at 8:50 am
    Jan 20, 2010 at 2:57 pm
  • Hello All, I have 2 arrays. I have written a script that searches each and every value of first array in the second array. Each & every value of Source Array should occur only once in the target ...
    Parag KalraParag Kalra
    Jan 19, 2010 at 11:46 am
    Jan 19, 2010 at 7:33 pm
  • Hello, My CPAN directory in Mac OS X 10.6 is /Users/chap/.cpan/ (where I think it has been since time began). The 'cpan' command apparently doesn't know to look there, because it complains, creates ...
    Chap HarrisonChap Harrison
    Jan 8, 2010 at 3:07 am
    Jan 9, 2010 at 6:22 am
  • Hi, I am designing a system in which scripts are installed into their own directory, by a non-root user, under their home directory. It is very important they not be allowed to write anywhere outside ...
    Trevor VallenderTrevor Vallender
    Jan 4, 2010 at 10:34 am
    Jan 5, 2010 at 9:13 am
  • Good new year!!!! Can any one please help me to solve problem with Safari, Google Chrome and Opera. my script has to load from secure server HTTPS for security reason. It works fine from IE and ...
    Simphiwe MkhizeSimphiwe Mkhize
    Jan 4, 2010 at 10:49 am
    Jan 5, 2010 at 12:35 am
  • I am new to Perl and am running ActiveStatePerl on a Windows 7 machine. I am trying to get SSH to work but get the error: The getpwuid function is unimplemented at C:/Perl/site/lib/Net/SSH/ Perl.pm ...
    Electr0n wizardElectr0n wizard
    Jan 23, 2010 at 12:46 am
    Jan 25, 2010 at 2:58 pm
  • Hello list, I use() a module and explicitly put some of its functions into the main namespace so that I can use them without giving the full package name. However, when the same module is used by ...
    Frédéric PerrinFrédéric Perrin
    Jan 22, 2010 at 8:15 pm
    Jan 25, 2010 at 2:07 pm
  • Hi, I'm running Perl on Windows XP, and have a script which I've run for ages with no problems. However, I now have a message per below: "Win32 version 0.27 required--this is only version 0.24 at ...
    Jane D.Jane D.
    Jan 21, 2010 at 8:52 pm
    Jan 22, 2010 at 2:33 pm
  • Hi all, Need some advise please on how do date arithmetic/calculation. Basically, I have a CSV delimited file that I need to do some date calculations on. Am parsing the fields as $date1 and $date2 ...
    Newbie01 perlNewbie01 perl
    Jan 22, 2010 at 10:07 am
    Jan 22, 2010 at 10:32 am
  • I am trying to place the date of each day of the week for each month that has 5 weeks into a hash. For instance my hash key 'Monday' would point to an array that has all the dates where Monday is in ...
    Johnson, Reginald (GTS)Johnson, Reginald (GTS)
    Jan 17, 2010 at 7:45 pm
    Jan 18, 2010 at 9:59 pm
  • Hello there, I try to fetch the content of the page http://www.pluendermeister.de/sec/300300/?curServer=Aegwynn&gname=&submit=Daten+absenden with LWP and try to parse it. But when I print the result ...
    Christoph FriedrichChristoph Friedrich
    Jan 14, 2010 at 12:57 am
    Jan 14, 2010 at 3:31 pm
  • Hi,all There is a problem confused me for a long time . It is: cat test.txt ------------------------ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ------------------------ Then I want to this result : 1 2 3 6 9 ...
    MajianMajian
    Jan 13, 2010 at 10:47 am
    Jan 14, 2010 at 9:00 am
  • We currently use html tables as a template to control the layout of our online course materials. We want to replace the html tables with an alternate technology. Ideally, we would like to render our ...
    JeffJeff
    Jan 8, 2010 at 7:30 pm
    Jan 9, 2010 at 4:41 am
  • Somehow my data is being transformed. The CGI code is: #/bin/perl use CGI::Util qw( escape unescape make_attributes ); use CGI; use CGI qw( escapeHTML ); my $q = new CGI; my $data = $q- param( ...
    Bruce FerrellBruce Ferrell
    Jan 8, 2010 at 7:14 pm
    Jan 8, 2010 at 7:33 pm
  • Hello, I am reggie kogulan. Please remove all references in beginners.perl.org. Back in 2003, I was subscribing to this list and I stopped it. I did post many messages. I want them to be removed. ...
    Jay taylorJay taylor
    Jan 6, 2010 at 5:16 am
    Jan 7, 2010 at 6:11 pm
  • i have a question for the following perl code, by changing the value in %h3, the script also changes the value for %h4, I vaguely understand it is because %h3's key is reference to %h2, %h2's key is ...
    Jim GreenJim Green
    Jan 22, 2010 at 12:16 am
    Jan 22, 2010 at 12:51 am
  • Hello everyone: I am trying to pass a hash of hashes from one script to another via a cookie. I can get the cookie to pass, but when I try to get the inner hash keys and values using what I think is ...
    MikeMike
    Jan 18, 2010 at 7:11 pm
    Jan 20, 2010 at 1:17 am
  • Hello, I've been looking for some basic domain/IP info that we can generate for domain/IP addresses entered from a form. I've been searching CPAN without much luck, but maybe looking in the wrong ...
    Mike BlezienMike Blezien
    Jan 17, 2010 at 5:16 pm
    Jan 18, 2010 at 2:15 am
  • Hi, Suppose I run an application from within a perl script, with system (eg system ("myfavprogram input_file out_file")). Is there a way to let the script know that the program has finished running ...
    ANJAN PURKAYASTHAANJAN PURKAYASTHA
    Jan 13, 2010 at 11:28 pm
    Jan 14, 2010 at 9:48 am
  • Hi there, I want to initiate a series of scp commands from the shell. Is there anyway to view the scp status bar when running the shell commands from a perl script? if so, how? Cheers, Noah
    NoahNoah
    Jan 14, 2010 at 12:33 am
    Jan 14, 2010 at 9:31 am
  • Hi, I want to use perl and print time before and after sleep but not successful, can anyone advice? #!/usr/bin/perl my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime time; my ...
    DolphinDolphin
    Jan 13, 2010 at 6:08 am
    Jan 13, 2010 at 11:06 pm
  • Hello, I have sub routine in a module that creates a MD5 hash: &make_md5(__FILE__); what exactly does this "__FILE__" represent, the current filename ? thanks for any help, Mike(mickalo)Blezien ...
    Mike BlezienMike Blezien
    Jan 12, 2010 at 9:01 pm
    Jan 12, 2010 at 9:46 pm
  • Hi, All, Hope everyone's new year is starting out very well. I'm having to adjust a perl program I wrote to manipulate some genetics data. Originally, the program had no memory problems but now that ...
    Aimee CardenasAimee Cardenas
    Jan 8, 2010 at 10:06 pm
    Jan 8, 2010 at 11:00 pm
  • Hello, I'm using CPAN module, Mail-Box-2.093, to parse and process my MBOX file on Unix. I have a message as follows. I have an email, when I open in PINE on Unix, it shows the header as: [utf-8] ...
    ShankarShankar
    Jan 7, 2010 at 7:24 pm
    Jan 8, 2010 at 12:35 pm
  • Hello first question, maybe one of many! Code running on a windows machine connecting to Linux box. I am trying to capture an ls\dir command into a file from an FTP connection, similar to ls -lA ...
    Jag ThrippJag Thripp
    Jan 7, 2010 at 7:19 pm
    Jan 7, 2010 at 7:36 pm
  • Hi There, I am trying to learn and understand multithreading but I am not sure why one would choose to use multithreading ? Could somebody please explain and perhaps provide a example.
    Mud_saisemMud_saisem
    Jan 3, 2010 at 10:47 am
    Jan 5, 2010 at 7:27 pm
  • I'm using the method outlined in http://msdn.microsoft.com/en-us/library/ms995764.aspx, and also I have tried other methods on the web to call my vb.net (3.5) webservice. I can call any method that ...
    ScottScott
    Jan 25, 2010 at 3:53 pm
    Jan 25, 2010 at 10:00 pm
  • Hi, what's the difference between do a block and eval a block? sub test { my $bl = shift; eval $bl; # do $bl; } test { print "hello\n" }; from the code, I see both do and eval work the same. Thanks.
    Xiao Lan (小兰)Xiao Lan (小兰)
    Jan 24, 2010 at 3:39 am
    Jan 24, 2010 at 6:08 am
  • First please forgive me if this is the wrong way to go about asking this question. I have a script im working on that is looking to only get the filenames with ".mw.|.cw.|.uw." and exclude any ...
    SolaristarSolaristar
    Jan 22, 2010 at 9:59 am
    Jan 22, 2010 at 6:33 pm
  • Hi all. Am wanting to change the location of @INC to point to where some of the date's pm files are. Can anyone please advise if it is possible to have the use lib on a single line or is this not ...
    Newbie01Newbie01
    Jan 22, 2010 at 11:07 am
    Jan 22, 2010 at 11:58 am
Group Navigation
period‹ prev | Jan 2010 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions60
posts322
users82
websiteperl.org

82 users for January 2010

Uri Guttman: 23 posts Shlomi Fish: 22 posts Parag Kalra: 20 posts Jim Gibson: 14 posts Shawn H Corey: 14 posts John W. Krahn: 13 posts Jeff Peng: 11 posts Dr.Ruud: 9 posts C.DeRykus: 8 posts Steve Bertrand: 8 posts Grove, Michael: 7 posts Mike Blezien: 7 posts Perl Noob: 7 posts Brad Baxter: 6 posts Dermot: 6 posts Grant: 6 posts Jenda Krynicky: 6 posts Andreas Moroder: 5 posts Bob Williams: 5 posts Erez Schatz: 5 posts
show more
Archives