Search Discussions
-
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 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 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 ...
Grant
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 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 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, 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" ...
Grant
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 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 ...
Bruno
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 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 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 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 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 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 ...
Shan
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 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 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 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 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 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 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 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 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 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 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 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 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.
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 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)
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 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 ...
Majian
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 ...
Jeff
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 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 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 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 ...
Mike
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 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 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
Noah
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 ...
Dolphin
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 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 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] ...
Shankar
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 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_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 ...
Scott
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 (小兰)
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 ...
Solaristar
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 ...
Newbie01
Jan 22, 2010 at 11:07 am
Jan 22, 2010 at 11:58 am
82 users for January 2010
Archives
- May 2016 (29)
- March 2016 (38)
- February 2016 (66)
- January 2016 (62)
- December 2015 (36)
- November 2015 (59)
- October 2015 (35)
- September 2015 (32)
- April 2015 (18)
- March 2015 (101)
- February 2015 (74)
- January 2015 (99)
- December 2014 (74)
- November 2014 (65)
- October 2014 (47)
- September 2014 (66)
- August 2014 (68)
- July 2014 (171)
- June 2014 (85)
- May 2014 (126)
- April 2014 (36)
- March 2014 (162)
- February 2014 (154)
- January 2014 (94)
- December 2013 (42)
- November 2013 (71)
- October 2013 (192)
- September 2013 (143)
- August 2013 (114)
- July 2013 (141)
- June 2013 (201)
- May 2013 (163)
- April 2013 (90)
- March 2013 (125)
- February 2013 (150)
- January 2013 (185)
- December 2012 (120)
- November 2012 (101)
- October 2012 (117)
- September 2012 (180)
- August 2012 (319)
- July 2012 (170)
- June 2012 (223)
- May 2012 (249)
- April 2012 (298)
- March 2012 (311)
- February 2012 (261)
- January 2012 (155)
- December 2011 (282)
- November 2011 (266)
- October 2011 (316)
- September 2011 (369)
- August 2011 (371)
- July 2011 (310)
- June 2011 (392)
- May 2011 (434)
- April 2011 (630)
- March 2011 (440)
- February 2011 (282)
- January 2011 (419)
- December 2010 (319)
- November 2010 (314)
- October 2010 (360)
- September 2010 (256)
- August 2010 (223)
- July 2010 (340)
- June 2010 (298)
- May 2010 (483)
- April 2010 (683)
- March 2010 (480)
- February 2010 (339)
- January 2010 (322)
- December 2009 (531)
- November 2009 (558)
- October 2009 (375)
- September 2009 (449)
- August 2009 (497)
- July 2009 (428)
- June 2009 (306)
- May 2009 (293)
- April 2009 (362)
- March 2009 (477)
- February 2009 (467)
- January 2009 (408)
- December 2008 (405)
- November 2008 (545)
- October 2008 (770)
- September 2008 (662)
- August 2008 (663)
- July 2008 (773)
- June 2008 (730)
- May 2008 (650)
- April 2008 (791)
- March 2008 (692)
- February 2008 (399)
- January 2008 (694)
- December 2007 (581)
- November 2007 (688)
- October 2007 (882)
- September 2007 (709)
- August 2007 (1,243)
- July 2007 (849)
- June 2007 (898)
- May 2007 (796)
- April 2007 (587)
- March 2007 (705)
- February 2007 (521)
- January 2007 (578)
- December 2006 (565)
- November 2006 (555)
- October 2006 (704)
- September 2006 (734)
- August 2006 (725)
- July 2006 (884)
- June 2006 (681)
- May 2006 (703)
- April 2006 (889)
- March 2006 (724)
- February 2006 (607)
- January 2006 (588)
- December 2005 (684)
- November 2005 (664)
- October 2005 (682)
- September 2005 (616)
- August 2005 (743)
- July 2005 (716)
- June 2005 (670)
- May 2005 (809)
- April 2005 (830)
- March 2005 (1,020)
- February 2005 (740)
- January 2005 (784)
- December 2004 (873)
- November 2004 (910)
- October 2004 (1,242)
- September 2004 (936)
- August 2004 (911)
- July 2004 (1,101)
- June 2004 (1,026)
- May 2004 (945)
- April 2004 (1,161)
- March 2004 (1,485)
- February 2004 (1,608)
- January 2004 (1,512)
- December 2003 (1,607)
- November 2003 (1,437)
- October 2003 (1,314)
- September 2003 (1,382)
- August 2003 (1,351)
- July 2003 (1,559)
- June 2003 (1,576)
- May 2003 (1,586)
- April 2003 (1,600)
- March 2003 (1,731)
- February 2003 (1,641)
- January 2003 (2,020)
- December 2002 (1,360)
- November 2002 (1,198)
- October 2002 (1,677)
- September 2002 (1,905)
- August 2002 (1,685)
- July 2002 (1,975)
- June 2002 (1,900)
- May 2002 (2,332)
- April 2002 (2,098)
- March 2002 (1,658)
- February 2002 (2,237)
- January 2002 (2,304)
- December 2001 (1,568)
- November 2001 (1,823)
- October 2001 (1,712)
- September 2001 (1,289)
- August 2001 (1,993)
- July 2001 (2,424)
- June 2001 (3,399)
- May 2001 (1,797)
- April 2001 (650)