Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: expect.pm header

by stevieb (Canon)
on Apr 06, 2015 at 20:47 UTC ( #1122606=note: print w/replies, xml ) Need Help??


in reply to expect.pm header

$system, used in your header way at the top is never defined at all, let alone before it is used.

You need to re-evaluate how you are doing things. It looks like you want to create a header down after you define @systems, then iterate over that through each one and use something like

"---$system[N]---\n".

Also,

use warnings;

...might have been useful, but I didn't test. Always use it.

-stevieb

Replies are listed 'Best First'.
Re^2: expect.pm header
by amagana (Acolyte) on Apr 06, 2015 at 21:19 UTC
    You are right, I am a novice and need help if you could give me an example, I would be greatful.

      Just do what our friend roboticus said in his above post :)

      -stevieb

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1122606]
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 2020-10-21 17:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (222 votes). Check out past polls.

    Notices?