perl - Baffling "Useless use of a constant in void context" in simple code -


I am performing a small pearl script inside a bash script. Pearl reports that Absolute use in unused material- A line 28 , which is later at the end of the Pearl code.

Bash excerpt:

To parse the album list file # Pearl script # PERLSCRIPT = $ (cat & lt; -'__END__ '#! Use / usr / bin / perl hard; Use caution; Use XML: my $ album_file = $ ARGV [0]; My $ album_id = $ ARGV [1]; $$_data = $ XMLin ($ album_file) , Balrere => [album ']); My $ album_key = ""; ($ album == $ album_id) {$ album_key = $ albums_data- & gt; {album} - & gt; My albums are $ ($ Album == $ album_id) {album} - & gt; {$ album} - & gt; {key}; print "$ el Exit_button_button_button_button_button_button_button_button_button_button_button_button.png / Code>

When I am executed, I see the following:

  454: calling parallel useless usage   

What is the complaint about?

I believe this will be done with '__END__' Refers to the line. Bash & lt; & Lt; - 'TOKEN' does not require single quotes with heredoc signals.

  $ perl -w & lt; & Lt; -'__END__ '& gt; Print "Hello World \ n"; & Gt; '__END__' & gt; 2. In the zero context on the useless use of absolute (___ p_) on ___END__ 2. Hello World $ perl -w & lt; & Lt; -'__END__ '& gt; Print "Hello World \ n"; & Gt; __END__Hello world    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -