1,633 Topics

Member Avatar for
Member Avatar for bigfoot_80906

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?

Member Avatar for bigfoot_80906
0
140
Member Avatar for anthony05

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 …

Member Avatar for anthony05
0
193
Member Avatar for optomystique

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> …

Member Avatar for kordaff
0
407
Member Avatar for bigfoot_80906

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]

Member Avatar for Comatose
0
137
Member Avatar for TimmyRaa

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 …

Member Avatar for optomystique
0
590
Member Avatar for bigfoot_80906
Member Avatar for bigfoot_80906
0
112
Member Avatar for classifieds100

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 …

Member Avatar for classifieds100
0
183
Member Avatar for nathanpacker

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 …

Member Avatar for kordaff
0
242
Member Avatar for PatrikK

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 …

Member Avatar for PatrikK
0
246
Member Avatar for nathanpacker

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 …

Member Avatar for Comatose
0
336
Member Avatar for fareen

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 …

Member Avatar for fareen
0
670
Member Avatar for Deathwish

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 …

Member Avatar for Comatose
0
291
Member Avatar for tat2dlady

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 …

Member Avatar for Comatose
0
117
Member Avatar for lore00

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 …

Member Avatar for Comatose
0
100
Member Avatar for edw5086

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> …

Member Avatar for Comatose
0
157
Member Avatar for tat2dlady

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 …

Member Avatar for Comatose
0
179
Member Avatar for Commander Salam

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 …

Member Avatar for Comatose
0
129
Member Avatar for jayakant82

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 …

Member Avatar for Comatose
0
103
Member Avatar for tat2dlady

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 …

Member Avatar for Comatose
0
212
Member Avatar for Commander Salam

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, …

Member Avatar for Commander Salam
0
357
Member Avatar for Nihar

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 …

Member Avatar for YUPAPA
0
130
Member Avatar for jabberwock486

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 …

Member Avatar for liliafan
0
283
Member Avatar for Sphyenx

"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 …

Member Avatar for alc6379
0
112
Member Avatar for kaiser<lucy>

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 …

Member Avatar for kaiser<lucy>
0
119
Member Avatar for satimis

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

Member Avatar for satimis
0
103
Member Avatar for 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:- …

Member Avatar for satimis
0
199
Member Avatar for flory

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 …

Member Avatar for Narue
0
161
Member Avatar for Mahen

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]

Member Avatar for alc6379
0
94
Member Avatar for tccummings

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 …

Member Avatar for tccummings
0
113
Member Avatar for Sphyenx

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!

Member Avatar for alc6379
0
79

The End.