1,633 Topics

Member Avatar for
Member Avatar for orwell84

I have been using this code: [code="perl"] while (($key, $value) = each (%hash)) [/code] To iterate through a hash. However, the order of the keys that it retrieves are exactly the same each time i run the script. I looked to google for answers and found the following [URL="http://www.nntp.perl.org/group/perl.perl5.porters/2008/06/msg137802.html"]bug report[/URL]. …

Member Avatar for KevinADC
0
451
Member Avatar for Amigirl824

Hi - Looking for perl scripts for checking reciprocal links e-mail ami-at-transcendevelopment dot com Thanks! SNIP

0
49
Member Avatar for mandible

Hello I was wondering if there is a way to read a unix profile'd variable while inside my PERL code? I'm trying to do something like this. system( " execute some code >> $UNIXVAR\log"); also tried system( " execute some code >> '$UNIXVAR\log'"); I think though that the way I'm …

Member Avatar for subii P
0
134
Member Avatar for subii P

Hello, I am facing the a probelm, I wanted to read a unix PATH variable into perl script. But its not working. $path_var=`$PATH`; Can u help me in doing this. Thanks in advance, Subii

Member Avatar for masijade
0
118
Member Avatar for LSU_223

Hello - I'm trying to use Perl to run through a list of numbered folders (41..61) that have a txt file in each with a name like "ms_stem41" or "ms_stem10B.pl". I am grepping a line from these files then manipulating them. The files all start with "ms_stem". When I type …

Member Avatar for LSU_223
0
128
Member Avatar for Amps

Hi How do we install the CPAN packages, like CGI-XMLForm-0.10 in the linux system. I basically have idea of ppm through which we install in windows system ... but no idea about linux ... hw do we do it in linux. if we have to use the tar file which …

Member Avatar for Amps
0
229
Member Avatar for Vandithar

Hi, I have a URL like this: [code] $url="http://www.somesite.com"; [/code] I have to connect to this URL and download the data. Sometimes there will be problem in that particular site. So I have to reconnect and then again download the data. Here is the code to connect online. [code] #!/usr/bin/perl …

Member Avatar for KevinADC
0
201
Member Avatar for perlfan

Brand Newbie to perl. Playing around trying to get a feel for how arrays work and encountered error in title. [COLOR="Green"]#!/usr/bin/perl -w use strict; my(@array) = (10, 20, 30, 40, 50, 60); my($marker); my($EOA) = @array; for ($marker = 0; $marker <= $EOA ; $marker++){ print "@array[$marker]\n"; #line where error …

Member Avatar for KevinADC
0
691
Member Avatar for Amps

Hi If i add the try block it says syntex error at initlialization of for loop . Non -working code ... #!/usr/bin/perl -w use strict; try { print " 11111111111 "; } catch { print " 2222222222 "; } for (my $i = 0 ; $i < 5; $i++) { …

Member Avatar for Amps
0
128
Member Avatar for derekn

I would like to enable users to view the contents of a zip file via CGI interface. I have tinkered around with Archive::Zip, Archive::Zip::MemberRead, and Archive::Extract, and can't seem to figure out a way to work. After perusing the net for a solution to this, it seems that perhaps the …

Member Avatar for L8onw
0
120
Member Avatar for rayken1

FT CDS complement(join ( 14006...14068, 19351..20068)) FT /locus_tag= TP01_0004” FT /note=”go function: nutrient reservoir activity [goid FT 0045889] The above statement is been read as a string and I would a REGEX as follows: /^FT \s CDS \s \ / complement[0-9]/ # search line 1 /^FT \s .* \ / …

Member Avatar for rayken1
0
189
Member Avatar for adkona

Hi, I have a CLI application and when the user enters the password, I would not like it to be shown on the command line. Is there a way to do that in Perl on Linux? Thanks.

Member Avatar for KevinADC
0
65
Member Avatar for jlondon

I have inherited a script here that churns out 3 tidy folders for creating user nt profiles, user folders, and also user mail accounts. It is now no longer working. I had created a new administrative login on the Mac station where BB edit is being used. I can run …

Member Avatar for onaclov2000
0
108
Member Avatar for himanshukec

Hi, I upgraded Perl 5.8 in Unix to Perl 5.10.0 I am using WWW::Mechanize package in my scripting. But I am not able to locate WWW::Mechanize in Perl. Can any help me ???

Member Avatar for Prakash_8111
0
71
Member Avatar for Matrix28

I'm working with a com object that was originally designed for ASP. For this one function you specify the name of the field and the variable name that will hold the return value but this doesn't work: [ICODE]$Enable->GetField("LINE",\$Line});[/ICODE] This is how it was originally written in asp [ICODE]Enable.GetField("LINE",Line)[/ICODE]

Member Avatar for wickedxter
0
86
Member Avatar for affee

I need to access 2 variables sent to this script; fieldsearch and fieldvalue, both are sent from a php script (using passthru) but the sytax is incorrect as I get a 500 error : [Mon Jun 8 12:17:51 2009] perlSOAP.cgi: Global symbol "$fieldsearch" requires explicit package name at perlSOAP.cgi line …

Member Avatar for wickedxter
0
129
Member Avatar for maxjackie

Hello friends , I have a problem like there is web application and i have to write a script that should login to the application and then move other parts of the application [code="perl"] use HTTP::Request::Common qw(POST); use LWP::UserAgent; use Data::Dumper; $ua = LWP::UserAgent->new(keep_alive=>1); my $req = POST "http://servername.com:5002/index.php", ['user_name' …

Member Avatar for wickedxter
0
164
Member Avatar for Prakash_8111

Hi All, Can any one suggest how to connect remote more than one remote server one by one inside a loop through Net::SSH::Perl package ? , I have to connect to 9 remote server, I am able to connect the first server , execute some command there come out again …

Member Avatar for wickedxter
0
96
Member Avatar for CoolAtt

Hi all. Am using amavis for email scanning but got stuck somewhere in the configuration file. I want to add some custom code to populate an array from a postgresql database. (Amavis and its conf are written in Perl) Below is part of the configuration file which i want to …

0
81
Member Avatar for derekn

Could someone please help me figure out how to sort files in a directory by date? There are a lot of files to sort, thousands. All I want to do is sort by date last modified or accessed and then print that array. Thanks, Derek

Member Avatar for onaclov2000
0
339
Member Avatar for TeamUSA

Hello everyone, I've been having a problem parsing through a .bin file. Ideally, I want the script to read the .bin file, find the first word in it, write down word 1 somewhere else, and continue on throughout the file, word by word. I've tried similar things such as open …

Member Avatar for Fest3er
0
107
Member Avatar for derekn

I'm having a dumb moment here... I am trying to search out strings and match user input with what's stored in database. I'm using [code]if($data =~ $user_input){then do something;}[/code] It's important to note that all the "$data" strings are all numbers. So for example, user puts in "1" and it …

Member Avatar for onaclov2000
0
136
Member Avatar for onaclov2000

Hey, I'm looking to gather a list of all selected files in a windows explorer window. I.E. Say I have the My Documents Folder open, and select 5 files out of say 20 in the folder, I would like to replace whatever is in the clipboard with those five entries. …

Member Avatar for onaclov2000
0
261
Member Avatar for Niteshay

Ok i have not started programming at all but wanted some answers first is pearl the easiest programming language ?? also if it is what is a god book to learn it from. If it is not then what is one of the easier languages to learn ???

Member Avatar for mapsonyllaer
0
151
Member Avatar for caffine4lovers

Hi I am new to perl programming, and have hit a bit of a snag. I have been editing the ghettoshutdown script for my own devices. What it does so far is shutdown or suspend all virtual machines on a host (using vmware for virtualization), but it does not shut …

0
88
Member Avatar for derekn

Ok, I am about to pull all my hair out. I have written many many perl scripts and have done it all pretty much. All of a sudden, I have hit a real problem, and I DON'T know why! I am doing a very simple array declaration by reading a …

Member Avatar for KevinADC
0
197
Member Avatar for binfPerl

Hello, I'm fairly new to PERL and this is my first post - so be kind. I'm working through a book called Beginning PERL for Bioinformatics, and one of the exercises asks to "Write a program to read a file, and then print its lines in reverse order, the last …

Member Avatar for binfPerl
0
225
Member Avatar for Mahen

Hello all, I have been working with Linux a lot and i find myself installing a lot of linux distros, but with no way to test them..... So i crafted a script in Perl to quickly create a lot of files on the Hard Disk and delete them. The script …

0
90
Member Avatar for me8042

Hi everybody, I want to compare 2 tables contents. My tables are: Table1 ------------------ ID || Value ------------------ 1 || forum_list1 2 || Message_list1 3 || Search1 4 || Search5 5 || Search11 6 || Log_out 7 || LOG Table2 -------------------------------------------- ID || Value1 || Value2 --------------------------------------------- 1 || rd_forum_list1_no …

Member Avatar for msvinaykumar
0
153
Member Avatar for kummetha

How to print the duplicates in a text file. Also the line number where the duplicate text has been found needs to be printed. pls help KZ

Member Avatar for KevinADC
0
165

The End.