2,452 Topics

Member Avatar for
Member Avatar for magix

Hello, I'm trying to simply do a SELECT from an ODBC source. It works perfectly in PHP but not in perl ! Therefore there is no problem at source or at ODBC level, it seems to reside at perl/DBI level... What I do : [CODE] use DBI; $dbh = DBI->connect('dbi:ODBC:' …

Member Avatar for magix
0
309
Member Avatar for ishamputra

Hello, some help here.. I have a gridview, at my home page, binded to a dataset. On the first column is a hyperlink, on which, if click it will go to another, page, Viewer Page, and passes the data to display on the other page pls advise, preferably in c#.. …

Member Avatar for kameswari
0
769
Member Avatar for morfanaion

At the moment I'm busy updating a number of modules for perl on one of our servers, but I'm experiencing some problems with the Mail::SPF::Query module. Most of the subtests fail right now, but I can't find out why. Anyone has a clue? Below is the output of "make test" …

0
79
Member Avatar for shaife

Hi I have a short script :(see below) My problem is on the system lines syntax it doesnt do what I expect. Instead of running the bb command send as status dbr-cmrm06.us.ensrv.mgmt.bmc and then cat to the history_test file and send the content to the hobbit server it prints the …

0
77
Member Avatar for rayken1

use warnings; use strict; open (TEXT_FILE,'C:\Documents and Settings\rnjenga\sawa3.txt'); my ($line, $nextline); while ($line = <TEXT_FILE>) { if ($line =~ /FT\s*\Wnote.+\w+:/){ $nextline = <TEXT_FILE> ; print ("$line $nextline \n"); } if ($line =~ /FT\s*\Wnote.+none/){ $nextline = <TEXT_FILE> ; print ("$line $nextline \n"); } } close (TEXT_FILE); I have written the above …

Member Avatar for mitchems
0
121
Member Avatar for maudits

hi everybody, i need some help, I am stuck on a problem for too long. I have a decimal number (big Int), very big, (246 cypher). I need to convert this number to a 96byte char. I cannot understand how. I have already read and tried pack/unpack, but i can't …

0
57
Member Avatar for derekn

I am trying to accurately calculate percentages with perl. The problem is of course that percentages don't end up as nice, even whole numbers...and I want to truncate those number (92.38495%) to the whole number accurately reflecting the percentage (92%). Using "($value/$total)*100" gives the percentages, then I used "$value=int($value+0.5)" to …

Member Avatar for KevinADC
0
223
Member Avatar for perlfan

The following code: Exits immediately and produces the message below when search pattern "[COLOR="Green"]\b\w+{3}\b[/COLOR]" is entered: [code=perl] #!/usr/bin/perl -w #matchtest1.pl use strict; my($pattern); my($true); $_ = '1: A silly sentence (495,a) *BUT* one which will be useful. (3)'; do { print "Enter a regular expression: "; chomp($pattern = <STDIN>); if …

Member Avatar for perlfan
0
134
Member Avatar for jen140

Hello all. I have a small problem. I have a crewler, that gets into one website and extract some info from it, and writes the exctracted content to file. The only prob, that in 3~4hours of work, thise script uses 1 gig of ram. [code]for(my $increment = 1; $increment <= …

Member Avatar for lordspace
0
93
Member Avatar for perlfan

I am reading the book "Beginning Perl" by James Lee and have been pretty happy with the content so far. That said I am stuck on chpt 7 which deals with regular expressions - I can't get the backreferences to work even when I copy the source verbatim. source: [COLOR="Green"] …

Member Avatar for perlfan
0
121
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
455
Member Avatar for LurkerPatrol

Hi Guys, I'm working on a form and was wondering if this is the simplest/only way to clear input text on a form and have it come back if the field is left blank. [CODE]<p> Name: <input type="text" value="First Name" name="fname" onfocus="if(this.value == 'First Name'){this.value=''};" onblur="if(this.value==''){this.value='First Name'};"/> <input type="text" value="Last …

Member Avatar for Airshow
0
107
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 jbisono

Hi, friends i have a datagrid bound a hypercolumn [CODE=ASPNET] <asp:DataGrid ID="menu" AutoGenerateColumns="False" Runat="server"> <Columns> <asp:HyperLinkColumn DataTextField="OPT_DESC" DataNavigateUrlField="OPT_LINK" DataNavigateUrlFormatString="{0}"/> </Columns> </asp:DataGrid> [/CODE] basically what i want to do is, that i want to insert into the database the users that click some links. so how can i make a clickevent …

Member Avatar for jbisono
0
349
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
135
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
131
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
230
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
692
Member Avatar for kaylar

I have a web site that I built using HTML and CSS. I uploaded the site to the server and it works great except for the add to cart button. I took the site down and put the old one back up because the shopping cart is not working. The …

Member Avatar for kaylar
0
413
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
121
Member Avatar for piyushpandey

I want to create a button which when clicked, open a targeted page in new window...... Please please please help....

Member Avatar for MidiMagic
0
31
Member Avatar for thai84

Two days back I had purchased D-Link-Xtreme N™ Dual Band USB Adapter (DWA-160). This purchase was made with a big expectation i.e the manufacturer(Dlink) says its feature is [B]"DELIVERS FASTER SPEEDS AND FURTHER RANGE THAN 802.11g SO YOU GET STRONG SIGNALS FROM VIRTUALLY EVERY CORNER OF YOUR HOME"[/B] but unfortunately …

0
38
Member Avatar for thai84

Two days back I had purchased D-Link-Xtreme N™ Dual Band USB Adapter (DWA-160). This purchase was made with a big expectation but unfortunately it happened to give the same result of my Acer Notebook’s built in Adapter (Atheros AR5007EG Wireless Network Adapter), which is terribly low. I use D-Link-DSL-2740B RangeBooster …

0
40
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
191
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 UnforsakenX

I'm trying to figure out how to get results from a database query to be displayed on a listed page and if the user wants to know more about the results they will click one of the dynamically generated items that is hyperlinked. This will then bring the user to …

Member Avatar for UnforsakenX
0
106
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
109

The End.