[wellylug] Need some help with Perl

sljudd at paradise.net.nz sljudd at paradise.net.nz
Wed Oct 31 13:40:43 NZDT 2001


Quoting Lloyd <lloyd at fusion.net.nz>:

> You seem to be striping \r\n from the wrong variable? Should be
> $line, not $lines? :)

Ooh, yeah, baby, that looks like it to me too.

Also, you can save yourself from this in the future by saying "use strict" at 
the start of the script. This forces you to explicitly declare all variables 
with "my", which means you would have noticed this straight away.

I'd still use chomp though.

stephen

  .-.   Wellington
  /V\   Linux
 // \\  Users       
/(   )\ Group
 ^^-^^
        http://wlug.paradise.net.nz/

To unsubscribe from this group, send an email to:
wellylug-unsubscribe at egroups.com
  

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the wellylug mailing list