Hacker News new | ask | show | jobs
by peterwwillis 2490 days ago
What if Perl uses libc ?????
3 comments

It does on my system:

  $ otool -L /usr/bin/perl
  /usr/bin/perl:
      /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1663.0.0)
      /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.0.0)
That's not an issue unless perl calls wordexp (as part of the stuff it does when called by wordexp).
then it calls the Perl implementation... is there some nuance of perl that would cause a problem with that?
They're jokingly positing a loop: libc shells to perl, perl implements the function via libc call, which shells to perl... and so on.
So if Perl uses libc, which shells put to perl, which uses libc... get it? :)