Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] while (<@blah>)

Expand Messages
  • Daniel Gardner
    DSC I ve been doing this in solaris using perl 5 for a while.. it works fine. When I run the script in Linux (using perl 5), it does something very
    Message 1 of 3 , Jul 31, 2001
    • 0 Attachment
      DSC> I've been doing this in solaris using perl 5 for a while.. it works fine. When I run the script in Linux (using perl 5), it does something very different.

      DSC> Specifically, in solaris, if @blah hasn't been defined, the while loop won't be entered.

      DSC> In Linux, if @blah hasn't been defined, it will run through the loop once. $blah[0] is undef, and $_ is empty.

      DSC> Am I doing a no-no?

      do you really want to be doing (<@blah>), or do you want to
      be doing (@blah)? they're quite different, and may quite
      possibly do different things on different platforms...
    Your message has been successfully submitted and would be delivered to recipients shortly.