in reply to behaviour of do

I can't reproduce your behavior. It seems to Work For Me:

$ cat one.pl #!/usr/bin/perl do 'two.pl'; $ cat two.pl #!/usr/bin/perl warn "Oops"; do "three.pl"; $ cat three.pl #!/usr/bin/perl warn "Poops"; $ perl one.pl Oops at two.pl line 2. Poops at three.pl line 2.

Replies are listed 'Best First'.
Re^2: behaviour of do
by rsiedl (Friar) on Apr 14, 2006 at 02:26 UTC
    yeah, thanks revdiablo.

    I just did the same test with the same results as you.
    Does each bit of 'do' code need to return true, do you know?
      perldoc -f do