🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.perl
Article #52267

Pytanie o znaczenie "0xffff & system"

#52267
From: Scottie
Date: Sun, 17 Jul 2011 09:14
22 lines
1829 bytes
Hej!
W jednym skrypcie znalazlem takie oto wywolanie:
----------------8<----------------
if ($file_only ne "true")
      {
        $rc = 0xffff & system("${ORACLE_HOME}/bin/sqlplus -silent
$rep_user/$rep_pwd@\"$rep_alias\" \@$outfile");
        $rc >>= 8;
        return $rc;
      }
----------------8<----------------

Czy ktos moglby mnie oswiecic, co oznacza zwlaszcza to wyrazenie:
"0xffff & system"? Co tu robi i do czego sluzy ten kod szesnastkowy?
Nastepna linia tez jest ciekawa: "$rc >>= 8;", ale tez nie rozumiem
jej znaczenia... :-/

Z gory wielkie dzieki!

Pzdr,
--
Scottie
Technical Details
Message-ID: <e0208c0f-7c3a-4cfd-978b-ccd6d24ba211@g12g2000yqd.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!plix.pl!newsfeed1.plix.pl!goblin2!goblin.stu.neva.ru!feeder1.cambriumusenet.nl!feed.tweaknews.nl!postnews.google.com!g12g2000yqd.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!plix.pl!newsfeed1.plix.pl!goblin2!goblin.stu.neva.ru!feeder1.cambriumusenet.nl!feed.tweaknews.nl!postnews.google.com!g12g2000yqd.googlegroups.com!not-for-mail
From: Scottie <scottie383@gmail.com>
Newsgroups: pl.comp.lang.perl
Subject: Pytanie o znaczenie "0xffff & system"
Date: Sun, 17 Jul 2011 02:14:43 -0700 (PDT)
Organization: http://groups.google.com
Lines: 22
Message-ID: <e0208c0f-7c3a-4cfd-978b-ccd6d24ba211@g12g2000yqd.googlegroups.com>
NNTP-Posting-Host: 77.114.156.200
Mime-Version: 1.0
X-Trace: posting.google.com 1310894083 24096 127.0.0.1 (17 Jul 2011 09:14:43 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 17 Jul 2011 09:14:43 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: g12g2000yqd.googlegroups.com; posting-host=77.114.156.200; posting-account=ELxU3goAAAC0N9FXVO0mEF4trg5o1BZ0
User-Agent: G2/1.0
X-Google-Web-Client: true
X-Google-Header-Order: ASELCHRU
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.77 Safari/534.24 ChromePlus/1.6.2.0,gzip(gfe)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit