Hi -
Have PERL script that has the following code to lock the file when executing as follows -
1 #!/usr/bin/perl -w
2 use Fcntl ':flock'; # import LOCK_* constants
3 my $lockfile =...
parse parameter to soap lite
in test.pl I do,
my $hd = SOAP::Lite->proxy("tcp://$server", timeout => 5);
how to parse that in Lite.pm
In Lite.pm there it calls send_receive
...
I have need of a scripting brain to help me through the following issue:
I need to change a flat file to prepend a 3 digit code to a certain field in the file going on the value in another sc...
I am tasked with parsing a good deal of addresses (first batch is 47,000) into individual components so that they can later be imported into an SQL database. I started with a CPAN search and ...
I use the attached Perl script to upload media to a web server.
Now I want to place information about the uploads in a MySQL database.
Here is an example MySQL insert:
IN...
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...
I have created a cgi which will prompt the user to upload a file, however when I try to put more than one browse button on the page I am never able to capture the 2nd file..
I'm needing to duplicate the functionality of an ActiveState 5.8 script that uses Net::SMTP::SSL to authenticate to my ISP's mail server -- only using perl 5.10. It doesn't look like Net::SM...
I know this doesn't work but, combined with the question, I think it will point to what I'm trying to do
perl -pi.bak -e "s/AAAA/ZZZZ/g" *.*
This returns a
Can't open *.*: Invalid argu...
have a perl script my_script.pl which I invoke under C-shell on Linux (brand new Linux install and its not about the script since it has no problems on another server).
I invoke it by typing ...
I use the following code to read a list of contents from a directory
[code]
@files = <$in/*>;
foreach (@files) {
}
[/code]
I know it's easy to filter one file type by placin...
Hello all,
Have a bit of a pickle. I "inherited" a web project to set up a joomla site which requires installing extra modules, templates, plugins etc. Problem with PHP is it's lack of perm...
Hi Expert,
I have program test.pl, how can I write a code to stop test.pl if $ErrorNumber >0 ?
Program test.pl
if($ErrorNumber > 0)
{
system "perl M:/temp/email1....
Hi,
I need to find the ip addresses of almost 50 machines. So I need to open a dos window and
issue ping hostname and then I get the reply form where I can get the ip address
like this...
Hi guys!
I have a perl script that one of you nice people helped me with.
It works fine but just with one problem. Here is the script:
====================================================...
I want to encrypt a string in perl that consists of a name and cyrrent system date/time + 15 minutes
"ABC 09-25-2007 10:20:00" using basic encryption and a key.
Then I want to pass that st...
Greetings,
I have a pipe delimited flat file database and I need a little guidance in searching and modifying with a perl routine.
The database has many lines constructed as below
s...
I am trying to do something that should be simple. However, I am trying to do it so it is not.
1. I am trying to implement a formmail script called: NMS Formmail. It can be found here: ...
What is the syntax for programming an If statement with a substring in Perl? I want to check the value of the first 2 characters of the field.
what is difference between chop and chomp
@test = unpack 'U*', "5002005000"; #should equal 53.
for my $i( 0..$#test )
{
$test[$i] = sprintf "%x", $test[$i];# convert 84 decimail to 36 hex
}
my $FinalOutput= join q//, @test;
...
Hi
At the top of a perl script, I see this @rem. Looks like comments, but I know comments start with #. So what does this mean? Thanks.
Jirong
@rem = ' PERL for Windows NT -- ccperl m...
OK ... This is a very frustrating problem that I would really appreciate some help with.
Quick background: I am using VBA in Excel to load up websites containing information on stock optio...
I generate SNMP trap frequently on my hosts
Is there a perl script i can write to receive the SNMP traps?
i m using perl 5.6.1 (cannot upgrade to 5.8 due to restrictions)
I have an @array that contains more than 1 line of text. How can I output each one
as 1 long line?
output might be:
array[0]="line1 line2 line3 line4 line5"
array[1]="line1 line2 line...