Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

2shortplanks (968)

2shortplanks
  (email not shown publicly)
http://2shortplanks.com/
AOL IM: trelane2sp (Add Buddy, Send Message)
Yahoo! ID: trelane2sp (Add User, Send Message)

Mark Fowler has never been the same since he was elected leader of the London Perl Mongers. The strain manifests itself mainly in releasing various [cpan.org] modules [cpan.org] to CPAN, giving talks [2shortplanks.com], and use of the Trelane nick on #london.pm for endless procrastination. Doctors are still seeking a cure.
Friday August 27, 2004
10:36 AM

One of those days

[ #20597 ]
It's one of those days. Even the fun little hack I was writing in CamelBones hates me this afternoon. Documentation (From O'Reilly's Cocoa In A Nutshell):

  // Read all available data and converting it to a string
  NSData *data = [fh availableData];
  NSString *str = [NSString stringWithData:data];

My code (in Perl:)

   my $data = $outhandle->availableData;
   my $string = NSString->stringWithData($data);

The debugger:

  Exception raised during posting of notification.  Ignored.  exception:  *** -[NSConcreteFileHandle availableData]: Invalid argument

Bah. Everything hates me.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.