2,452 Topics
![]() | |
Is there a standard way to make constants defined using the [inlinecode]use constant[/inlinecode] pragma available to all of the packages that are use'd from an executed file? Or even better, to make the constants defined in a package available to other packages that use that package? It seems like anything … | |
I just don't know what to do to end the damn loops!?! [code] #!/usr/bin/perl -w use strict; print "Welcome to Techno-Bank 3000.\n"; print "Enter command => "; my $input = <STDIN>; chomp $input; my ($command, $user, $amount) = split / /, $input; my %accounts = ( $user => $amount ); … | |
I have executed a unix command whose output has a number of columns separated by whitespaces.How to extract a column from it and put it into an array using Perl. | |
Hello everyone. I'm still working on that forum system I mentioned a bit ago (perlBB). Hopefully it'll be ready for Christmas :p . However, I ran into a strange problem while I was re-writing parts the two functions below. [code=perl]sub enter_post { my(@field, $input, $offset1, $offset2, $n, $name, $field_length, $flag_guest, … | |
[COLOR=black]I am total novice, but I must solve this problem very quick and need help. Problem:I’ve been given a file 1 2 15 1 3 16 2 3 20 and so on…First two values of the input file represents graph nodes and the third one is distance between them. I … | |
Hi friends, I am using Perl Tk for a GUI application. It uses a telnet part wherin I need to login to a unix machine, execute a command and process the result. The code is as follows : my $result = $t->cmd(("grep - $filename.txt~ | wc -l | awk '{print … | |
Hi Guys! I've attached here the screenshot i've made for my friends program. I need to properly understand these offsets so i could know the right unlock code from the combination of the username and challenge string produced by typing the username. Thanks! Need to know how! please help me! … | |
Hi all, I need to set some values on web page using perl. but the web page is created in jsp. for setting the values i need to click on a gif image which has got HREF to one javascript api. i need to invoke this from perl for setting … | |
Hello everyone. Is it allowed to have a "use" statement inside an eval that is compiled separately to the enclosing program (i.e. eval EXPR, not eval BLOCK). The reason I want to do this is, I have modules of code that I don't want to be compiled every time my … | |
I was wondering whether anyone else has experienced this. When a script I am working on got above a certain size, the line numbers quoted in the compile and run time error messages started to be inaccurate. The line numbers now seem to always be before where the error actually … ![]() | |
here is the asp code: [Response.Redirect("[URL]http://www.yahoo.com[/URL]")] what i am trying to do is loop through my database and send variables through a querystring to the same target address. but if my code redirects to the target url it will stop at the first record before it gets to the next. … | |
I am quite new to Perl, and have not had much luck finding a cause for some seemingly-strange behavior of a Perl script I am playing around with. I am running Perl 5.8.6 on OS X 10.4.8. I have done some perusing, but I'm not quite sure how to describe … | |
Is anyone familiar with lisp programming? If so can you please respond back. I have a program due and it deals with lisp type checking! I would really appreciate it. ;) | |
![]() | I've been looking for the anwer for almost 2 days now, odds are I'm looking in the wrong place but I can't find it. Is there a script I can write to get perl to print a command to the command line and then "press enter" to execute it? |
I wrote a code in C# which contains a datagrid which is having a hyperlink and we want when we click on this hyperlink it will redirect to another page and select all the selected messages. How can i do this? | |
Hello everyone. I'm working on getting threads of replies to work in my forum system. I'm using this function: [code=perl] sub read_fields { my($offset1, $offset2, $offset3, $offset4, $this_offset, $result, $n, $dbase, $data, @field_name, @name_length, $num_fields, $m, $check, $check2, $primary_key, $action, @passed_array); ($offset1, $offset2, $result, $dbase, $num_fields, $m, $action, $primary_key, @passed_array) … | |
![]() | I'm Trying to write a program that will automatically open a .exe file enter a piece of text in a specific textbok and then exectute itself. I'm new to perl and can't seem to find any of the answers in my books or online. I'm running Perl through the windows … ![]() |
There are so many spoof programs promoting the 'best marketing strategies' that it has become more of a joke than a real help. Many things we read about make out that one person can reasonably learn what is needed to achieve success and profits on the Internet. How many have … | |
:eek: I wrote a script which access my mails from outlook.But it suddenly pop's up a box which asks for allowing the access to the mails. I want to suppress that pop up window.How can I do it? Its very urgent please provide the reply urgently! Thanks in Advance. | |
Hello everyone. I was just wondering if it is OK to do this: [code=perl] if ($beer == $wine) {# Some code} elsif ($beer == $vodka) {} else {die("Oh dear! Neither condition satisfied!")} [/code] i.e. have an empty block attached to an if, elsif or else. It might sound like an … | |
I want to parse this expression PFolder=Personal Folders&SFolder=Inbox&Message=3 and want to extract Personal Folders from PFolder,Inbox from SFolder and 3 from Message,so that i can further use this things "Personal Folders,Inbox and 3"in the program. How can I do it? | |
Hello everyone. I always run Perl scripts on a web server with [code] #!/usr/bin/perl -T [/code] at the top (i.e. taint mode on). I try to do the same when testing scripts on my local machine and this often works fine. But somtimes (when running from the command line) I … | |
I am having a problem getting my "break" to work correctly in this program. Can anyone help me see what I am doing wrong? This is my program: [code]import string import math class Student: def __init__(self, name, hours, qpoints): self.name = name self.hours = float(hours) self.qpoints = float(qpoints) def getName(self): … | |
Hi all, I had developed an Ip scanner with perl and inline c++. The forum was really useful for me..So thought I will share it with you. [URL="http://www.sourceforge.net/projects/computeip"][COLOR=#0000ff]www.sourceforge.net/projects/computeip[/COLOR][/URL] [COLOR=#0000ff][/COLOR] thanks, karthika. | |
Hi guys, This issue is driving me crazy. I have an assembled unit and the CD-ROM just wont load anything. Everytime i load a CD/DVD it says the following error consistently CDStart.Exe - Application Error The application failed to initialize properly (0xc0000006). THe CDdrive is HL-DT-ST CD-RW GCE-8481B and i … | |
I m new to perl and i have to develop such webserice which can use the perl script via html so that the source of the perl file cannot be displayed only the output is displayed. | |
Hi, I just took a freelancer script its a cgi script. Can any one let me know is there any posibility to run a cgi script on local computer like we run php on apache/IIS and asp on IIS. Is there any way to run cgi script. Thank You | |
In certain cases, it's correct for my app to die if it encounters a potentially dangerous condition... I'm working on a more detailed error reporting system, and among the things I want to list are; the object class that threw the error, and the method that threw the error. At … | |
Hello everyone. If you're a regular Perl user you might already know this; the developers of Perl 6 are using a prototype version of the Perl 6 interpreter written in Haskell to do various "proof of principle" testing. It's called Pugs (maybe a pun on the Haskell interpreter Hugs). However, … | |
Hello, I have a question about perl I wanna connect a program for example a login/user creation to a website It a program That once you make an Account it sends that account to the game server which requires login to play And once you make that Account you can … | |
I've recently relpaced a MOBO in an older laptop running Win 98SE. When i put it back together the keyboard doesnt seem to work properly. When i press A i get E. When i press S i get V. Whats going on here. Ive also noticed that the video doesnt … | |
I have a Repeater control (myrepeater) and a datagrid both bound to the same datasource: dgMaster.DataSource = GetAuthors() dgMaster.DataBind() myRepeater.DataSource = GetAuthors() myRepeater.DataBind() Here is how it is setup in the repeater: <asp:Repeater id="myRepeater" runat="server"> <HeaderTemplate> <tr> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td width="30%"></td> <td><%# Container.DataItem("firstdate") %></td> <td width="30%"><asp:HyperLink ID="Hyperlink1" Runat="server" … | |
is it possible, to use, or otherwise import and access the class in a .pm file by a suggested name (this would be after compilation)... here's the lowdown, I've been working on a project for a while now, it is an XML processor. One of the parts of a process … | |
Dear ALL, Iam a PHP programmer and I have one year experience in php programming. Now I would like to study PERL and its features. can any PERL prorammer let me know the good tutorial or URL for studying PERL. Really its helpful for me..... Thanks in advance.... | |
HI, I am new to web development as well as ASP.Net....I am trying to design and a develope a web UI....in which I have two frames....in one one of the frames I am placing my menu items (presently a href tags)....when I click on any of the menu item the … | |
Hello every body, Ok here is my problem... I make an HTTP Request to a server and i am being redirected to another page. How can i know to which page am i being redirected? Depending on the Request i am being redirected to another page... I get the HTTP … | |
How to get the Current processes list using perl in windows. Like "ps -elf" in unix based system. | |
Hi all, What are the statements in a perl script that need attention/change for making the script run in a different OS. ofcourse the perl interpreter path(hashbang line) Say for eg: perl statements (system, exec and backtick ) involves command line commands.So commands will differ for different OS and so … | |
hi all, My website host does not support changing perl file permissions online through an ftp program or any other method, and i need to change my .pl file to have different permissions in order for them to work. how do i change my file's permissions to chmod 755 or … | |
![]() | I am trying to modify a parser for delimited files I already wrote so it works on a delimited file that doesn't contain each set of data on the same line. So for example, ||A||B||C||D||E||F ||G||H|||A||B||C|| D||E||F||G||H|||A where each data set is separated by 3 pipes instead of 2. Can … |
I designed a website for my husband, but I'm having trouble getting the submit button to work the way I want it. I want it to send the customers information to our email address and then to a thank you page. I've been able to get it to send the … | |
"Here is the latest internal thought I had that makes me wonder what its all about. For curved shower rod there are about 50 to 75 sellers, including myself, all selling the same product from the same manufacturer.(who holds a patent) Add to this the redundant items from these same … | |
Hi people, I am very amateur with ASP.NET. I am working on a movie booking system and i am currently having some problems linking my normal html homepage to my membership registration page which is done with asp.net. I tried using Frontpage hyperlink propeties to link my homepage with my … | |
Hello everyone. I've run into a problem with regular expressions; the extraction "variables" ($1, $2, $3 etc.) are read only and scoped to the current block. If you need to do two regex extraction operations in the same block, is there a way to reset the ($1, $2, $3 etc.) … | |
Can someone post a code of a login page using just jsp with cgi or perl only? | |
Hi everyone. Would really just like someone to take a look at what ive done and tell me how many horrible faux-pas ive made :-) I'm trying to teach myself the language as im going along which is making it hard to conform to any standards. I know there are … | |
Background: Minimal experience with Perl and none with Expect. We have 1,000's of users. 150+ Unix servers (Primarily AIX, some Solaris, and a couple of HP-UX). NIS is not an option and neither is purchasing a commercial product. The team (40 staff) has to maintain our own ID's across all … | |
Hello everyone. I've tried several times to use associative arrays in my Perl scripts, but each time I have got syntax errors I can't understand. Based on the tutorials I've read I have tried to do things like this: [code=perl]sub test_function { my($key, %table); %table = ('word1', 'Perl', 'word2', 'is', … | |
Hi, I want to write a program in perl which will pass function parameters to a C++ .exe file and run the exe file with these parameters | |
In linux I used PAR pp and converted my perl code to executable.. while running the filename.pl it is completely fine. But when I run the executable with ./filename It says it cant locate object methods new and other function (both written in inline c++.) some hints plssss |
The End.