Advertisement

250 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested Perl Solutions: 51 - 75 of 977
 
Hi all, I need to remove the same string from the txt file using perl, how do I do it???? Pls some 1 help???
I'm putting together a Perl script that would handle uploading a file to a temp file, and then allow PHP to handle the rest.  I am having a problem with the upload() function in the Perl scrip...
Hi Experts,    I am using the following piece of code to read a CSV file,      open CSV, "A:/Auto.csv" or die "Can not open Auto.csv $!\n";      %files=map/(\S+),\s*(\S+)/g,<CSV>;      close CSV;    ...
e.g. I want to run "dir > temp" in the middle of perl script?
I am writing a client that will connect over the network to a server. The server will send (upon connect) multiple bytes of binary data, I need the client to log all these bytes of data send...
I have an ascii list of about 13,000 opt-in email addresses. Each email address is on a separate line. I need a browser based perl script that will help me extract the aol, hotmail and y...
I am installing swatch (module for use by Snort) and it requires several specific modules, like date, time formatting, etc.  Using ActiveState Perl, I tried to prepare the code but the above e...
is it possible to delete line of a file in perl without opening and closing a file i mean i know to create a new file blah..... but that is a long way.... i want simple unix command to be ...
Need some help... I've created a variable, $StdFolder, which points to a directory that I want to use as the standard for all new projects. $StdFolder = 't:/projects/standard/'; I want to ...
Can someone show me the most efficient way to replace non-ASCII characters with spaces in a string? Thanks, Kavoni.
I'm using the following Perl script to create a spreadsheet from a text file. Basically the script works, but it's inserting a little square(carriage return character) as part of the $ACTIVITY...
Hi, i have a tab delimited input file that looks like this: Query      Score      E-Value      Position At1g01010       775      0.0      4705 At1g01010       775      0.0      4765 At1g01...
Hi Friends, I spent all my night working on this code but it only works if I assign the values directly to the variables, but if I take the value from an html file using post method it return...
Hi im looking Perl ways to read client hardware ID using browser whether it is MAC address or anything else. Thanks in advance
I'm trying to concatenate 2 arrays. The catch is that I'm trying to concatenate the elements. like the following my @array = qw/one two three four/; my @array2 = qw/a b c d/; I want the...
It is much easier to use a system call to mv to move multiple files/directories, but I want to use the Perl module File::Copy to accomplish this.  Basically, I need to move the contents of the...
I am looking for a perl script that can count the number of jpg files in a given directory. Can this be done? What does the script look like?
I need to be able to calculate all possible number combinations within any given number and alphanumeric set. It would be nice to be able to generate files filled with all possible number...
I need a perl script that will open an existing file delete the first line and then write them back out.
Hi,    I have a Perl script that runs in Microsoft IIS server as a CGI script, and does the following: 1) Reads stuff from the database, 2) Creates a plain text file to describe some data...
Hi I'm using an oracle db and i prepare and execute a statement that may return any number of rows. ... prepare_statement_differences(); $differences_sql -> execute; while(@differences ...
This is the code to get a y/n but when I make a subsequent call it does not ask for the input ! #! /in/local/bin/perl sub demande { my $in=0; system("echo \"Have u modified \""); $in = ...
I have an output file that is created with a Perl script that I want to align the data into readable columns.  The part of my script that does this is below: printf OUT "%s          %s     ...
Can I use awk or perl or other utility to make one output entry for a line starting with a date and 3 following lines with a filled parameter? so it looks like this?: 02-01-2008 03:34:50 20...
Hi,    I have a perl script which uses system call to call unix command and want to print good if the return status is 0 and false if return code is not 0. the korn script: #!/bin/ksh /...