1,633 Topics
|
|
I am reading from a text file with two columns. The first column contains the name of a device, and the second column contains the IP address for this device. how do i get the name and address and assign them to separate variable names? |
|
I have very little experience that’s why I need some help to get started I have been given a task to write a perl script in Linux and I don’t know from where to begin. Can anyone help me out with this please. 1. Move files from Windows 98 machine … |
|
greetings, i'm brand new to perl and trying to write a script to read a logfile for our weblogic server and write certain entries into a database table. the log file is a log4j weblogic log. here is a sample: [QUOTE]####<Jun 7, 2005 2:46:38 PM EDT> <Info> <Enterprise> <ga003sds> <tms1> … |
|
If I have a line like this, how do I exclude all other lines that don't contain a number in this format? and how do I input this number into an array? [CODE]-- | |- state (1)^M[/CODE] |
|
I'm trying to find or create a Perl script that at runtime will simply take a specified logfile or logfiles, and append todays date onto the end of it's name. If possible, I would also like the option of zipping the new file up. I can then run this as … |
|
|
|
I need to modify this script to have also an external txt file with urls instead of having only one url from the form that is created by the script. Just like the proxy.txt and agents.txt. Please help me... :confused: #!/usr/bin/perl use LWP::UserAgent; use HTTP::Request::Common; ####Proxy addresses##### $proxy="proxy.txt"; ####How many … |
|
Hi everyone, I am new to the forum, and I'm not very knowledgable, so I'll probably do more asking than contributing, and I apologize in advance for that. My question is about a guestbook I'm using. Most people know it, it's the one from Matt's Script archive. Only, I'm trying … |
|
Hi , I have been trying to use the win32::API:Struct for a while and mostly it works fine :) However i have ran into trouble with using structs within structs ... I dont know how to retrieve values from the nested struct .. example: [code] Win32::API::Struct->typedef('MDS_Forwarding', qw( char Address[257]; char … |
|
Hi everyone, I have had great success with those who helped me get my guestbook working in being able to post large amounts of text. Now I have one other problem I'm trying to figure out. I'm using the perl guestbook from Matt's Script Archive to allow users at my … |
|
Hi all, I'm fairly new to Perl I am confused ? I will try to explain it. What i am trying to do is we have 26 branches and our central office generates data files like for income files (003.inc010105,003.inc020105,) /sales(003.sal010105) and many more reports on dialy basis in text … |
|
Hey guys, My task is to write a perl program that will read in names/passwords from a text file and from that create user accounts and all sorts of stuff. Now I have been able to do the "stuff" and the only part giving me jip is how to overcome … |
|
I have a program that I need to do some matching in. For example, I need to match the lexemes in a LISP function and print the token out to a file. For example: if ($input =~ /(^\()/) { print OUTPUT "OPAREN $1\n"; $input =~ s/^\(//; } I need the … |
|
how do u write a perl/cgi program..which makes a page that prompts users to fill a form with the following fields: username surname first name password email address i already made the webpage with the form documents but i dont know the CGI bit.... If any of the fields are … |
|
Hello Everyone! how are you? fine i hope. How can i print just 5 records per Table row and the next 5 records on the next table row? Much thanks in advance! #!/perl/bin/perl print "Content-type:text/html\n\n"; open(INF,"data.txt") or dienice("Can't open data.txt: $! \n"); @grok = <INF>; close(INF); print <<EndHdr; <html><head><title>My Data</title></head> … |
|
Does anyone know how to match a negative number? What I am doing is printing the lexemes with their token to an output file. But, the problem is negative numbers. It should print like this: INT -1 Instead, it prints like this: SUB - INT 1 The SUB - is … |
|
I'm trying to parse a database, and assign a string value as the name of a hash... I'm not sure how to format such a request in perl. To be clear, I'm trying to make a hash such as %Jupiter using a variable string $planet. Any advice would be much … |
|
Can anyone help me.I need to access system environment in my perl script in windows .This is becos i want to specify the path in environment variables and access that path in the perl script ...anybody done this plz help me and send the appropriate code for the same. regards … |
|
Does anyone know how to ignore the rest of a line in Perl? I am reading a file and printing out tokens to an output file. I want to ignore the rest of a line after a colon is found, which indicates a comment. That way it will not print … |
|
Hi everyone, I'm trying to: (1) take an excel spreadsheet with two columns of data (2) convert to tab-delimited text file (3) import into perl as a hash I've managed to import as an array: open (LIST1, "list1.txt") || die "File not found\n"; while (<LIST1>) {push(@list1array, $_)}; close LIST1; However, … |
|
Hi there, Does any one know a Perl regular expresson to ignore specific string from a log file. For example i want to use this simple unix command using perl regular expression egrep -i -n "error|fatal" logfile.log |\egrep -v "user not found" i.e. it should ignore log file entry "Error … |
|
i know very little about programing. however i want to learn, even if it is basic(no pun intended) some have suddgested perl as a good place to start. So my question is, what are good resources, manuals, websites and other such things about perl programing. i use to do a … |
|
"Quote: Originally Posted by deanpence This is the order in which I learned to program: Basic QBasic Pascal C C++ Java Perl ... A very important point should be noted about learning in that order: I learned procedural programming first, and I recommend this course to any new programmer. Learn … |
|
hey all, im trying to write a perl program that will change the desktop background. I dont have much (read: any) background in working with windows environment variables, and am hoping that desktop image location is in fact one of these variables. any advice on how to reference and edit … |
|
Hi folks, Perl === Please advise how to add 'bold', 'italic', 'colour', etc. such features to the printout. Can HTML syntax work on perl? I tried seeming not applicable. TIA B.R. satimis |
|
Hi folks, I'm going to make a script checking inconsistence on 2 documents, say doc_a and doc_b and have no idea how to start. doc_b is reproduced from doc_a, (original document) not with 'copy and paste' command. Making it simple first, as highlighted in following example, an one line document:- … |
|
Hello all! Can somebody help me write a perl script which totals the total amount of time that each user is using on the system, as well as the number of processes the user is using. As example: The output of your program would be the following: root 00:01:18 13 … |
|
hi everyone i've created a program on perl and i want to share it with everyone so as everyone can bring his own code. For more information, email me at: [email]neoanderson12@hotmail.com[/email] |
|
When my CGI script is given input from my web page I get this error: Server error! The server encountered an internal error and was unable to complete your request. Error message: Premature end of script headers: projest.cgi Does anyone have a clue as to what I'm missing here? I … |
|
um the codes are #!/usr.bin/perl but i use a windows system so it won run even the book sayes to wite it like that, same with all prog books, whats the code for windows! |
The End.