Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Released: File::pushd

by diotalevi (Canon)
on Sep 02, 2005 at 12:45 UTC ( [id://488636]=note: print w/replies, xml ) Need Help??


in reply to Released: File::pushd

What does "push'd" mean? Why didn't you just overload chdir or extend it like chdir_push/push_chdir/local_chdir/chdir_local? Could you rename it to something like File::LocalChdir?

Replies are listed 'Best First'.
Re^2: Released: File::pushd
by kappa (Chaplain) on Sep 02, 2005 at 12:54 UTC
    pushd/popd are rather well known shell builtins for directory stack manipulation. That's probably the rationale for the naming.
    --kap
      Ok. I come from the programming side of the world and just use perl when I need something fancier in a shell.

        Why should the fact that you come from a programming world mean that the idea of a stack is foreign to you? Surely the idea of pushd/popd is quite obvious to a programmer? (I.e: I dont give a crap where i am now, take me back to the last place i was....)

        ---
        $world=~s/war/peace/g

      Howdy!

      ...for some values of "shell"...

      yours,
      Michael
Re: Released: File::pushd
by b10m (Vicar) on Sep 02, 2005 at 13:33 UTC

    Good question! Based on the node title, I thought it'd be some daemon to push files from a server to clients. Quite wrong ...

    --
    b10m

    All code is usually tested, but rarely trusted.

Log In?
Username:
Password:

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

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

    No recent polls found