Can someone Help me out with this

2002-05-24 Thread Avanish Pathak
Hi , Can some one provide me with a perl script for this: Problem: ci_cmd1="abcdef", // line1 ci_cmd2="ghijk", // line2 ci_cmd3="lmnop", // line3 ci_cmd4="pqrst", // line4 I want to delete line 1 and 2 and the above should look like as shown below:

RE: Can someone Help me out with this

2002-05-24 Thread David Gray
> Problem: > ci_cmd1="abcdef", // line1 > ci_cmd2="ghijk", // line2 > ci_cmd3="lmnop", // line3 > ci_cmd4="pqrst", // line4 > > I want to delete line 1 and 2 and the above should look like > as shown below: > > ci_cmd1="lmnop", > ci_cmd2="pqrst", Wher

Can someone Help me out with this

2002-05-24 Thread David Gray
you should try this. $old="abcdef"; $new="lmnop"; $ci_cmd1 = s/$old/$new/;#this substitutes the old value with the new one. regards, Ian David Gray wrote: > > Problem: > > ci_cmd1="abcdef", // line1 > > ci_cmd2="ghijk", // line2 > > ci_cmd3="lmnop", // l

RE: Can someone Help me out with this

2002-05-24 Thread inSite Internet Solutions
I don't know if this is the most efficient way to do it, but it worked. #!C:\Perl\bin\perl.exe -w use strict; my $infile = qq(C\:\\cmd.txt); my $outfile = qq(C\:\\cmdout.txt); my $cmdline; open(IN,"<$infile") or die "Whoops! Look what happened. $! \n"; open(OUT,">$outfile") or die "Could not o

RE: Can someone Help me out with this

2002-05-24 Thread inSite Internet Solutions
Whoops, correction... else { $line =~ s/(\n)+(\r)+//g; # use $line instead of $_ ($cmdline) = split(/,/,$line); print OUT "$cmdline \n"; } -Original Message- From: inSite Internet Solutions [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 9:39 AM To: Avanish Pathak;

Checking who called a cgi-script

2002-05-24 Thread Sebastian Nerz
Hy, I need to check which server (or better: which formular) gave data to a cgi-script (executed this script) (I am writing on a contact-script but I dont want every server to be able to execute this script!) How could I do this? (A link or source for informations would be enough) Many thanks!

RE: Checking who called a cgi-script

2002-05-24 Thread inSite Internet Solutions
I usually do a combination of things. * You can check domains, but they can be spoofed, so that in itself is not a cure. It's a start. * Does the site have a static IP? You can set the script only to run if called from that IP. Once again 'spoofabl

Re: CGI/Perl-usertracking

2002-05-24 Thread Sven
Hi John, > I'm sorry, I don't understand your question very well. > Can you give an example? No. I didn't start to arrange a program yet, so there is no specific problem. I just want your hints which way would be a good idea. What modules to use and so on. I never had to manage any usertracking a

session management

2002-05-24 Thread Hytham Shehab
hi all of you, how can i create a session using win32 system, on linux, there is a session module out there - aspn and cpan - but am searching about such one for win32 but i didn't find. can anyone tell me how to manage session through win32. thx Hytham Shehab -- To unsubscribe, e-mail: [E