I'm writing a standalone perl script that needs to decode all hex and decimal entities. There are a few modules out there that do this, but unfortunately everything I use has to be in one fil...
Hello,
I have a .cgi (perl) script.
When I run the script from a browser, I want it to start a background perl script and immediately finish loading. So I do not want the webscript to wait...
Hi,
I asked a previous question (http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_23254483.html) to find out how to split a text string ("123456-blah") into two parts...
I have the following script (thanks adam and fishmonger) which run perfectly on my desktop, however when I run it on my sun server with TIE 0.96 the trailer is alwys seen as invalid and even i...
I would like to use Perl Net::Telnet to access a switch, but the "enter return to continue" for paging down, makes the script stall. I'm using $prompt = $obj->last_prompt;" to find out where ...
I can do telnet in Perl script, however, I want to know how to get the last output to determine the next action?
Suppose I did
$t->print("1");
$t->waitfor("/>/");
on the next line, I w...
I have to strip the last column from different files using UNIX/Perl. The number of columns vary in each file. Please advise. The cols are pipe delimited in all the files.
I have a script that prints out data as shown below
#! /usr/bin/perl
use strict;
chdir "/logs/cals";
my @files = `ls -1rt |tail -10`;
foreach my $files (@files) {
open FI...
Hello Experts
I have a number of strings formatted thus:
String 1 = PRODUCT_NAME some data some data ~ some data
String 2 = PRODUCT_DESCRIPTION Some data
String 3 = PRODUCTCOST ~ Some...
Hi
I need to parse html file which contains data in <table> . I need to collect strings from table and store in a map or a write to file.
Please help me with a code snippet.
Hi,
I have two datasets of which I need to do a comparison and replace against.
My main dataset (Set A) contains 147K of documents - This has colour TIF files that need to be replaced by...
I have some code that I need to improve for performance, so I need to understand where it is slower.
The simple Bentchmark is not enough, since I have subroutines calling other subroutines,...
I have 2 files with content as follows:
file1:
TRIV|TRIvTE|client006|10:54:46|10:54:46
CANT|CANTEEN|client002|10:54:43|10:54:52
file2:
TRIV|04:24|04:39|00:15
I want to map based ...
Hello,
I need your help! Attached in the snippet is a perl script, while on executing with filesystem paths as command line arguments, it will list you out the Symbolic links which are brok...
How to run Peral command in PHP?
Hello!
Basically i need to export data from a directory on windows server to a file. It needs to include filenames, sizes and timestamp and append that data to existing file for daily compa...
Hi guys!
One of you kind geniuses (ozo) on here helped me with the following code :>)
----------------------------------------------------------------------------------- update.pl
#!/...
i play with perl on window xp
i want to read from file.As i run my program error displayed.
below is my code
$file = 'C:\Documents and Settings\Administrator\Desktop\passwd.txt';
open(...
Hello,
Referring to this Solution,
http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_23298404.html,
I tried to add one new feature to this script but got stuck. Pl...
I need to print out a list of records from a file that does not contain a "last modified" in 2007 or 2008, the perl one liner I made is somewhat working but not quit right so not getting exact...
I hope someone can help me to write a Perl Script in order to do the following steps
1. Telnet to a server 10.247.5.3
2. when successed, type telnet 192.168.250.250 and press enter.
3. when...
Why my php cannot run $perl = new Perl();????
Why??/
I keeps saying error
Fatal error: Cannot instantiate non-existent class: perl in C:\Web Server\run_perl.php on line 4
I was investigating perl file test operators and found this program on the web:
foreach (@ARGV) {
next unless -f;
$fileSize = -s _;
print("$_ is $fileSize bytes long.\n");
}
My...
How can i replace any non alphanumeric chars with a "-" char from a given variable
and how to do this without the standard $_ var, like:
$_="WA11D/2";
s/\//-/g;
print "$_";
WA11D/2 i...
Can use either Perl or PHP
I have POSIX qw(strftime) package for perl
I think it is date(timestamp) function in PHP but i am not sure