Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Different meanings of $0 under the same operating system

by Jorge_de_Burgos (Beadle)
on Nov 03, 2009 at 12:12 UTC ( #804670=note: print w/replies, xml ) Need Help??


in reply to Re: Different meanings of $0 under the same operating system
in thread Different meanings of $0 under the same operating system

Well, yes, of course I could have written a shorter program like yours. In that case the program would totally miss the output when run by Nautilus without a terminal open, wouldn't it? Just try to run your shorter program without a terminal.
  • Comment on Re^2: Different meanings of $0 under the same operating system

Replies are listed 'Best First'.
Re^3: Different meanings of $0 under the same operating system
by assemble (Friar) on Nov 03, 2009 at 16:04 UTC
    #!/usr/bin/perl -w print "My name is $0...\n"; <STDIN>;
    ...
      That won't work either. Can't you good die-hard command-line folks think of lack of feedback in a gui? That's what UI::Dialog is meant for... Just using print won't put anything on the gui if you run the program without a terminal as I wrote.
        On Windows, running that will show a command prompt and wait for me to hit enter. I can't imagine a linux box not doing that...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://804670]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2023-02-07 02:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (38 votes). Check out past polls.

    Notices?