Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: shifting arguments

by damian1301 (Curate)
on Aug 22, 2001 at 21:34 UTC ( #107047=note: print w/ replies, xml ) Need Help??


in reply to shifting arguments

Just to note with what you are doing in that example, it would be much easier to just do something like:

sub encode_string($$$){ return join $delimiter,@_; }


$_.=($=+(6<<1));print(chr(my$a=$_));$^H=$_+$_;$_=$^H; print chr($_-39); # Easy but its ok.


Comment on Re: shifting arguments
Select or Download Code
Re: Re: shifting arguments
by dragonchild (Archbishop) on Aug 22, 2001 at 21:40 UTC
    Of course, the question arises of how you're getting $delimiter ...

    ------
    /me wants to be the brightest bulb in the chandelier!

    Vote paco for President!

      $delimiter happens to be a global variable that is shared between 2 subs (could be anything the user desires, but needs to be consistant)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2015-07-06 23:43 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 (85 votes), past polls