Slash Boxes
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)

  (email not shown publicly)
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 [] modules [] to CPAN, giving talks [], and use of the Trelane nick on 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.
More | Login | Reply
Loading... please wait.