Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: PerlMagick Scene attribute

by Anonymous Monk
on Sep 28, 2017 at 00:57 UTC ( [id://1200238]=note: print w/replies, xml ) Need Help??


in reply to Re: PerlMagick Scene attribute
in thread PerlMagick Scene attribute

 $image[14]->Write...?

Replies are listed 'Best First'.
Re^3: PerlMagick Scene attribute
by afoken (Chancellor) on Sep 28, 2017 at 04:49 UTC

    Inventing a new syntax won't fix the problem. There is no @image array around.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

      Inventing a new syntax won't fix the problem. There is no @image array around.

      So whats the answer ?

      If I had perlmagick I would check if .pdf pages are treated like an image sequence, seems perfectly plausible thing to try

        seems perfectly plausible thing to try

        Sure, you could try to access $foo[42] if only $foo but not @foo is declared. But that won't help you at all: Perl will give you a runtime error with strict enabled. Without strict, perl will just pretend that $foo[42] exists and is undefined.

        >perl -MData::Dumper -e 'print Dumper($foo[42])' $VAR1 = undef; >perl -MData::Dumper -e 'my $foo="bla"; print Dumper($foo[42])' $VAR1 = undef; >perl -MData::Dumper -Mstrict -e 'print Dumper($foo[42])' Global symbol "@foo" requires explicit package name (did you forget to + declare "my @foo"?) at -e line 1. Execution of -e aborted due to compilation errors. >perl -MData::Dumper -Mstrict -e 'my $foo="bla"; print Dumper($foo[42] +)' Global symbol "@foo" requires explicit package name (did you forget to + declare "my @foo"?) at -e line 1. Execution of -e aborted due to compilation errors. >

        Alexander

        --
        Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2024-04-19 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found