Help: Searching an array question++

2001-07-10 Thread Bob Bondi
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

FOLLOWUP Question: RE: Help: Searching an array question++

2001-07-11 Thread Bob Bondi
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

I need to "touch" a binary file

2001-07-11 Thread Bob Bondi
So, simple on Unix/Linux! Are there any solutions via Perl to "touch" a binary file?

Can Perl 'see' HTML IfModifiedSince calls?

2001-07-12 Thread Bob Bondi
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?

Help: Starting a script with command line arguments

2001-07-19 Thread Bob Bondi
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 #\

Snippet to list both directories and files to an array or...?

2001-07-20 Thread Bob Bondi
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

Can PERL do a DIRECT GET?

2001-07-23 Thread Bob Bondi
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]

Getting values from a file

2001-07-25 Thread Bob Bondi
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 =

Why does this conditional fail? Perl bug?

2001-07-26 Thread Bob Bondi
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);

use Getopt::Std question

2001-07-26 Thread Bob Bondi
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

Getopts and ARGV

2001-07-30 Thread Bob Bondi
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