Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
(jeffa) Re: A different approach for bookmarks.by jeffa (Bishop) |
on Nov 19, 2001 at 22:04 UTC ( [id://126318]=note: print w/replies, xml ) | Need Help?? |
I wrote a similar script some time ago. It stored my links
in a database and i set up a bookmark that used javascript
so i could add the current page in one click. But that's
not why i am posting. This is why i am posting:
After you open the file, just do this: No need to store $/, shove the lines into a scalar and then split em back into an array. Additionally, if you have to store the file contents into a scalar, this is a much nicer way: And, (once again!) drop this: for this:
jeffa
In Section
Cool Uses for Perl
|
|