Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: need a clearer understanding

by parv (Priest)
on Aug 09, 2011 at 19:20 UTC ( #919525=note: print w/ replies, xml ) Need Help??

in reply to need a clearer understanding

... while($line = <$IFH> ){ chomp $line; if(not($line eq "")) { ##### why does $line equal "" ? my @tmp = split(//,$line); ...

what does $line = ""; mean?

If the "#####" comment is anything to go by, then a test for "not empty line" is being done in "not( $line eq "" )".

In that case your question is actually different than the comment, where you assign an empty string to $line variable.

Comment on Re: need a clearer understanding
Select or Download Code
Replies are listed 'Best First'.
Re^2: need a clearer understanding
by duyet (Monk) on Aug 09, 2011 at 19:51 UTC
    I think he means ($line eq "")

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2015-11-26 15:58 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (701 votes), past polls