WG: How do I extract 2 elements....

2001-07-31 Thread Alessandro Lenzen
Try this: @fo = @foo[2,5]; al -Ursprüngliche Nachricht- Von: Santosh M Hulkund [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 31. Juli 2001 16:02 An: [EMAIL PROTECTED] Betreff: How do I extract 2 elements Hi, I am new to perl, this is question is very silly and stupid. S

AW: simple

2001-07-31 Thread Alessandro Lenzen
What do you mean by "How can we disable the hyperlink?" al -Ursprüngliche Nachricht- Von: Rahul Garg [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 31. Juli 2001 15:24 An: [EMAIL PROTECTED] Betreff: simple Hello, How can we disable the hyperlink? Waiting for Reply, Thanx in advance, R

AW: $1

2001-07-30 Thread Alessandro Lenzen
Well, uh, I didn't realise that it was basicly my fault. I searched for something like this m/(\s\w+\s)/g in a string like "This is a test". Of course only " is " is found, although the g flag is set. The RegEx scans the string an finds " is ". When Perl continues to scan for the RegEx, I think it

AW: $1

2001-07-27 Thread Alessandro Lenzen
Making a mistake once can be exused, making it twice is stupidity and making the same mistake a third time only proves you have no brain ;-) Sorry, I figured out where the problem is... al -Ursprüngliche Nachricht- Von: Alessandro Lenzen [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 27

$1

2001-07-27 Thread Alessandro Lenzen
Hello folks! I'm reading Jos Boumans "Perl Beginners Tutorial To Regular Expressions". I'm stuck with a problem. Jos writes: Also realise that $1 and friends store the contents of the last succesfull match... I wanted to check that and wrote this code: #!/usr/bi

Jon Grant

2001-07-19 Thread Alessandro Lenzen
Hello Jon, here a modified script that actually works: #!/usr/bin/perl -w use CGI qw( :standard ); open(LOGFILE, "logfile.txt") or die "Can't open logfile: $!\n"; while ($temp=) { $link = $temp } print header; print "test"; print "$link"; print ""; Since I'm working at the moment I didn't ha

Using CGI.pm

2001-07-19 Thread Alessandro Lenzen
I think your header is spelled wrong, try print "Content-Type: text/html \n\n"; ^there is the bugger! But why would you want to print the header manually when using CGI.pm? al -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]