Thread akuelles verzeichnis (11 answers)
Opened by lichtkind at 2004-12-21 14:16

Taulmarill
 2004-12-21 19:11
#50258 #50258
User since
2004-02-19
1750 Artikel
BenutzerIn

user image
ähm, nicht ganz...
Quote
$ cat test.pl
#! /usr/local/bin/perl

print "$0\n";
$ perl test.pl
test.pl
$ ./test.pl
./test.pl
$ perl -e 'print "$0\n"'
-e


---edit---
Quote
$PROGRAM_NAME
$0 Contains the name of the program being executed. On
some operating systems assigning to $0 modifies the
argument area that the ps program sees. This is
more useful as a way of indicating the current
program state than it is for hiding the program
you're running. (Mnemonic: same as sh and ksh.)

Note for BSD users: setting $0 does not completely
remove "perl" from the ps(1) output. For example,
setting $0 to "foobar" will result in "perl: foobar
(perl)". This is an operating system feature.
\n\n

<!--EDIT|Taulmarill|1103649214-->
$_=unpack"B*",~pack"H*",$_ and y&1|0& |#&&print"$_\n"for@.=qw BFA2F7C39139F45F78
0A28104594444504400 0A2F107D54447DE7800 0A2110453444450500 73CF1045138445F4800 0
F3EF2044E3D17DE 8A08A0451412411 F3CF207DF41C79E 820A20451412414 83E93C4513D17D2B

View full thread akuelles verzeichnis