Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: perl suppressing warnings when executing java class

by sandeepda (Novice)
on May 13, 2013 at 21:19 UTC ( #1033359=note: print w/ replies, xml ) Need Help??


in reply to Re: perl suppressing warnings when executing java class
in thread perl suppressing warnings when executing java class

I am surprised how my java is getting called without system command


Comment on Re^2: perl suppressing warnings when executing java class
Replies are listed 'Best First'.
Re^3: perl suppressing warnings when executing java class
by tobyink (Abbot) on May 13, 2013 at 21:31 UTC

    print `foo` means pretty much the same thing as system("foo"); it's just less efficient (because it reads all of foo's output into a scalar before printing it out).

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
Re^3: perl suppressing warnings when executing java class
by Old_Gray_Bear (Bishop) on May 13, 2013 at 23:27 UTC
    The back-tick (`) operator invokes the Shell and passes the content to it to be executed. See "Quote and Quote-like operators" in the online documentation ($ perldoc -f ` ).

    ----
    I Go Back to Sleep, Now.

    OGB

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (12)
As of 2015-07-31 17:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls