Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Perlnet Telnet issue with ->

by bv (Friar)
on Jan 15, 2010 at 20:26 UTC ( #817692=note: print w/replies, xml ) Need Help??


in reply to Perlnet Telnet issue with ->

From the documentation for Net::Telnet

This method reads until a pattern match or string is found in the input stream

So your program is stopping once it reaches the >, thinking it is the next prompt. You should probably change that regex to match something more specific. At the very least, try /[^-]>/ to avoid the specific instance you are seeing. But really, learn more about the modules you are using. The use of the /i modifier (which has no significance when matching only symbols) seems to indicate that you copy-and-pasted this code without completely understanding it.


print map{substr'hark, suPerJacent other l',$_,1}(11,7,6,16,5,1,15,18..23,8..10,24,17,0,12,13,3,14,2,4);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://817692]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2019-12-11 06:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?