Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^2: Invalid argument

by Andrew_Levenson (Hermit)
on Dec 01, 2006 at 20:31 UTC ( #587297=note: print w/replies, xml ) Need Help??

in reply to Re: Invalid argument
in thread Invalid argument

Wow, I ask for advice and get an entire mini-tutorial.
THAT'S why I love it here.

Thanks for the schooling, I never knew that you could specify variables to be used in a subroutine!

Replies are listed 'Best First'.
Re^3: Invalid argument
by suaveant (Parson) on Dec 01, 2006 at 20:40 UTC
    my and local work in any scope...
    my $test = 1; print "$test\n"; { my $test = 2; print "$test\n"; test(3); } print "$test\n"; sub test { my($test) = @_; # parens make list assignment, otherwise you get the + count of items in @_ print "$test\n"; } #prints... 1 2 3 1
    You can also do something like
    while(my $var = shift @ARGV) { print "$var\n"; # var is scoped only in the while loop }

                    - Ant
                    - Some of my best work - (1 2 3)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://587297]
[Corion]: Weird - this "Install our backdoor SDK" spam is persistent. And I get the feeling it's not even automated, as it seems to be a re-forward of each mail, maybe even manually. Ah well, a quick rule in Thunderbird will move them to Spam automatically now :D
[Corion]: (the "backdoor SDK" is for distributing my software with an included backdoor, not for backdooring my own machine)
[marto]: ask for a trial
[marto]: then trick them into running your app
[marto]: once you have access, remove your email address from their system :P
[shmem]: why just that email address? why filtering?

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2018-05-25 14:03 GMT
Find Nodes?
    Voting Booth?