title: reasoning: Can't modify non-lvalue subroutine
body: <p>This code does work. But my question is this:  If I uncomment the two commented lines and comment out the next three lines, I would get a <code>Can't modify non-lvalue subroutine</code> and I would like to know why?  I would save a variable and ride a ..., if I could use the commented lines.</p>
  
  <p>Next question how would I make this more object oriented?</p>
  
  <pre><code>open FILE, "FBIDs" or die $!;
  while (&lt;FILE&gt;) {
       @csv = split /,/; 
  }
  for (my $i=0;$i&lt;$#csv;$i++) {
       my $browser = LWP::UserAgent-&gt;new( );
       my $url = "https://graph.facebook.com/$csv[$i]?fields=id,name\n";
       my $response = $browser-&gt;get($url);
  #     $response-&gt;content=~s/[{}\"]//g;
  #     my @json = split (/[,:]/,$response-&gt;content);
       my $resp=$response-&gt;content;
       $resp=~s/[{}\"]//g;
       my @json = split (/[,:]/,$resp);
       print $json[1],", ",$json[3],"\n";
       $browser-&gt;delete( );
  }
  close FILE;
  </code></pre>