Yep, another newbie at Perl. I have come to a wall. What I need to do is
open a file, find a value in the file and substitute a value.
I've gotten to the point of what to do with an open file. I have been trying
the @array = statement.
I then wanted to verify the contents of the array and tried p
Thanks for the feedback, everyone.
My goal for this script is to make "this.gif" and "that.gif" change places
in the file. I.E.
-
this.gif
that.gif
this.gif
-
after running the script I would have
-
that.gif
this.gif
that.gif
-
usin
So, simple on Unix/Linux! Are there any solutions via Perl to "touch" a
binary file?
I need to know if my browsers are sending IMS calls to the web server to
fetch html, images, etc. Is Perl able to watch the data returned to the
browser and tell me if IMS calls occurred?
My question is: how can I pass arguments to a script from the command line?
The script at the tail of this message is what I thought would print the 2
arguments I passed into the script, yet the output for this snippet is:
Here ya go:
Here ya go:
Count is: 0
Not enough arguments to get started
#\
I've been trying to use opendir($tempdir,@ARGV[0]) or die "Couldn't open the
directory, $!";
Can't use string ("tempdir") as a symbol ref while "strict refs" in use at
run
test4.pl line 58.
So, is there a snippet, please, that will do this?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For a
In fact what is a DIRECT GET compared to a GET? But, I need to do a DIRECT
GET, for testing IMS stuff in headers.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I'm planning on starting my perl script with a commandline argument, a
filename. I open the file and parse through it line by line, OK, but I'm
getting a blank on how to grab the value out of the file for a variable in
the script. The file will read like:
-TestClass = 3
-TestCase = all
-Proxy_IP =
Probably not a Perl bug, but this is so confusing I' probably enter it as a
bug
Given the script below and the fact that you run it like:
> perl foo.pl -p 10.0.0.1 -s 8080 -t SOS
what would you expect the output to be?
use strict;
use Getopt::Std;
my %opts = ();
getopt('pst', \%opts);
I really like this set of functions, very handy indeed. I've done this:
my %opts = ();
getopt('psuctfh', \%opts);#proxy serviceport url testclass testcase filename
my $proxy = $opts{p};
my $serviceport = $opts{s};
my $thisurl = $opts{u};
my $testclass = $opts{c};
my $testcase = $opts{t};
my $this
I've been trying to figure out how to give help with a -h opt flag and use
the Getopt::Std within the same script.
I've tried several ways to make this happen, and stumbled on an answer.
I've discovered that use Getopt::Std will not allow me to use @ARGV beyond
the point I have typed Getopt::Std
11 matches
Mail list logo