How can I add the // to the prompt in this code

2003-03-09 Thread Attiah, Ibrahim A
use Net::Telnet; $telnet = new Net::Telnet (Timeout => 20, Prompt => '/[%#>\]] *$/'); $out='C:\Result.txt'; open OUT, ">>$out" or die "Cannot open $out for append :$!"; $telnet->open('10.XXX.XXX.XXX'); $telnet->login('user','user'); @lines= $telnet->cmd("ipmac"); print OUT @lines,"\n"; for ($X=0;

Re: Regular Expression matching problem

2003-03-09 Thread Keith C. Ivey
Electron One <[EMAIL PROTECTED]> wrote: > while(<>){ > chomp; > if(/wilma\s+/){ >print "wilma was mentioned\n"; >} > } > > # > > and I type, perl -w perlname.pl test3.txt > shouldnt th

Regular Expression matching problem

2003-03-09 Thread Electron One
Hello Everyone, If I have a file that contains this, test3.txt## wilma wimagren was here twilma was type wilma wilma wilma wilma twowilmase ###

RE: Intro To Perl Question

2003-03-09 Thread Stuart Arnold
Yeah it is interesting. I just copied the code and sample file onto my XP-PRO and got the same results as you did. I then copied them to a Win98. It worked as you anticipated it would...correctly. I'll take a peak at what's going on there or if there seems to be a work-around. As well to you and t