Hi guys,
I like to know what do i write in my perl or shell script so that the script can locate any files that contain a particular string for example "Mr. Cool" and it will output the lis...
I have this script from adam314 to view a https page but the page requires a userid and password, which i have. How can I change the script to insert userid and password?
use Net::SSLeay...
I am a relative newbie to Perl. I'm playing around with Tkx to create GUIs. I've gone through tutorials and such at CPAN and by others. For the life of me, however, I can't figure out how I...
I'm looking for a way to find the current working directory as a UNC path, or failing that converting a path to a UNC path. Any suggestions?
I've been trying to write a small Perl program and have been having a bit of a hard time of it. Works perfectly on Windows, but on Fedora and NetWare for some reason IO::Select->can_read alwa...
I wrote the below code in ASP but found out the web server is running FreeBSD. Is there a way to turn on ASP in FreeBSD? If not, how can I convert the below code into Perl which runs in Free...
Experts,
I'm having problem in FTP during the "cwd" command.
Error msg i'm getting "The filename, directory name, or volume label syntax is incorrect"
What actuallly i'n trying to do is...
I am pretty new perl and I need to get LWP installed. I have the perl version summary below. Then I have the build summary with errors for LWP from inside CPAN and then the additional file tha...
Hi
In the below scripting I need to do a mget via the foreach loop. But after the file is ftped over I need to delete it off the remote server. Not sure what it should look like. would I c...
#!/usr/local/bin/perl
I don't know what I'm doing wrong here
I plan on running this from a CRON.
I keep getting a
"No recipient addresses found in header"
message.
Any ideas?
...
Hello,
I have been writing command line scripts for quite some time now using activestate's komodo development environment. However, one of the major shortcomings of Komodo is the inabil...
I have the following.
if (length($number) == 6 && $number =~ m/[^+]+/){$number="5$number";}
What I want is if number is length 6 and it does NOT contain +, then 5 should be prepended to...
I don't know how to do this but I'd like to remove the leading numbers, a period and a space of these filenames in a directory including subdirectories as well.
01. Just a Song_Artist.mp3...
New user
I am getting the following error message:
Can't locate Net/SFTP.pm in @INC (@INC contains: ../lib.
/usr/lib/perl5/5.6.1/i586-linu
BEGIN failed—compilation aborted at …. line 3...
my @array = (0..5);
I want it to be (0 10 20 30 40 50)
I tried (0..5)*10 , but this created a scalar=60 (casting problem)
Question:
How to multiply all the array's values, in a short s...
I have a 2 part question.
1. I want to replace & in a string with & which is easy enough $str=~s/\&/\&/g; but the string may or may not already contain the characters ' (or &#w...
Hi,
I have a shopping cart script where I want to separate the data manipulation and the data display functions.
I want one script to do all of the database inserts etc. and then call anot...
I have some great code for removing unwanted columns from a csv file. Now I need to add columns.
Basically I have an array of field names. ROW1 in the csv will always contain the field name...
I'm curious if there's any known methods for importing a DLL and calling its functions (without access to a .c, .h or anything else, just the DLL itself)
The DLL Methods are described below...
I often test subs for an undef returns (return undef).
Is it legal to test scalars $x == undef? It seems that
only a test against an explictly assigned value of 'undef'
is meaningful. ...
I need a regular expression to replace any numeric(Integer) with and empty string.
I need it quick.
Alan
could some one give me a example of a perl script that would CONCATENATE upto 5 files into one output file. i would like to be able to add the files and output file names as variables when i f...
Greetings Perl Experts,
This is not a homework assignment.
I am running a command that sends the output to the terminal screen. I woul d like the output sent to a file instead.
Please he...
I am trying to see what the best way to do this. Either perl, batch, cscript or some other command line means.
I need to parse a multi-line text file which contains data like:
--------------...
If I have the command to edit the input file, do I still need to split it and define each array or can the whole file just be read, split it, then add the commands below? If that's not the ri...